This topic is a supplement to Validation Methods for Text Elements. Below we provide details about validation and mask properties that you can optionally configure for some of the validation methods, including Postal Code, DateFormat, Custom Format and Length. A mask is a format for entering data. For example, if you want user to input dates in a format that matches your internal date format of month, day, and year you would define a mask of mm/dd/yyyy.
Choose the type of character validation you want to enforce for this element:
|Validation Mask||In the Value column, edit the mask that will serve as the validation pattern for the user entry. A validation error will occur if the user entry doesn't match the mask.
This property is dependent on the selection in Validation Type (which is Alpha by default). You edit the mask Value by adding x's to define valid user entry types. Wherever an 'x' is placed, a valid character type must be present. So, if you choose Alpha as the Validation Type, then each 'x' will be a placeholder for a letter character. If the user does not enter a letter for each 'x' in the mask, a validation error will occur. If you choose Numeric as the Validation Type, each 'x' will enforce a number entry. The Alphanumeric type will permit both letters and numbers.
For Postal Code, the default is shown as xxx-xxx. You might change it to xxxxx for a 5-digit zip code, or to xxxxx-xxxx for a 9 digit zip code.
For DateFormat, the default is shown as mm/dd/yy. You might change it to mm-dd-yyyy, or dd/mm/yyyy.
For Custom Format, you can create a mask with any combination of x's, slashes (/), or dashes (-) Note: You may also want to edit the Custom Message property on the Field Validation Setting panel to inform the user of the mask you are enforcing on this element.