You can set up XFDL input items to only accept input that is formatted within constraints that you specify.
For example, you can control how users enter Postal/Zip code information into a field by specifying an input pattern such as @#@ #@#,
. If the content of the field does not fit the pattern, the user is prompted to re-enter the data.
To specify constraints on user input:
Parent topic: Controlling and formatting data
Specifying the type of data to accept
Automatically formatting input
Constraint settings FD 8
- If you do not already have the Advanced IBM Forms Designer perspective open, click Window -> Open Perspective -> Advanced IBM Forms Designer.
- Select the item.
- In the Properties view, expand Format, format, and constraints.
- Set the constraints for the field.