Problems when using an input mask in V8

Prevent input mask placeholder from saving to database in ChronoForms V8.

Overview

In CF V8, an empty input field with a mask saves the mask pattern itself to the data table, unlike in V7.
Enable the "lazy" option in the mask settings and use the field's placeholder text to show the required format to users.

Answered
ChronoForms v8
Pe Peter48 09 Apr, 2025

Problems when using an input mask

In Chronoforms8, the mask is saved in the data table when saving data, if the input field has not been filled in.

Example V8:

Input mask: ___.___.__.__

Data saved: ___.___.__.__

In Chronoforms7, the mask was not saved, which I believe is correct.

Example V7:

Input mask: ___.___.__.__

Data saved:             (empty - no saving)

In my opinion, the input mask should not be saved in the data table.

Max_admin Max_admin 09 Apr, 2025
Answer

Correct, this is a bug, but you can solve this for now by setting "lazy=true" in the mask settings, and showing the mask pattern in the field Placeholder:

Problems when using an input mask in V8 image 1

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Pe Peter48 10 Apr, 2025
1 Likes

Hello Max. 

The workaround with "lazy=true" works.

Since the mask isn't displayed then, the "Placeholder Text" function can be used to indicate the exact spelling.

Thank you!

Max_admin Max_admin 10 Apr, 2025

great, thanks for the confirmation!

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Post a Reply