Format Mask in Forms

Prev Next

Forms support format masks to ensure data is entered and formatted consistently. For example, a GPA field may be restricted to only numeric data with two digits following the decimal point.

In other examples, a field format can include a currency with a thousands separator, or a field may force the input to be in the form of an email address.

Adding a format mask to a form field

Select Edit Field on a form field. The Format Mask field appears.  

Supported mask types

  • email: Forces validation of the data as an email address

  • #,##0: Hashes # indicate a digit placeholder, while a zero 0 forces the placement of a digit. For example, a number entered as "5" with this formatting will be formatted as "5", whereas a number like "10000" will be formatted as "10,000".

  • 0.000: Forces decimal precision. For example:

    • 4.34.300

    • 4.12344.123

  • 0.00#: Formats 4.3 as 4.30 and 4.301 as 4.301.

  • /[a-f]/: Forward slashes / are interpreted as a regular expression.

Changing or adding a format mask to a field won't automatically adjust the format of the existing data on a tab. However, if the tab is edited and resaved, it will update the data to use the new format mask.

Validation

For certain format masks, a pop-up message appears if the information is not provided in the expected format. For example, if text is entered for the email address but it does not follow the format, the registrant will see the following when they attempt to submit the form:

experience.png

Internally, an attempted form submission will show this warning message:

message.png

Still looking for what you need?