You can dynamically populate a validation pattern message with a value from a data source. This allows you to ensure users enter the correct value in the field.When you merge the data file with the form design, and you type a number in the Order Number field that does not match the pattern expected, an error dialog box appears.Another example could be to provide custom error messages for patterns in another language. The data file you point to could have the following defined for pattern validation:<validationPattern dp_patternMessage=”Le numéro de commande doit suivre le modèle suivant : A9A9A9″/>When you merge the data file with the form design, and you type a number in the Order Number field that does not match the pattern expected, an error dialog box in French appears.
Note: To use non-ASCII text (such as accents) in your data file, ensure the file is suitably encoded and the encoding is correctly identified in the XML processing instruction. For example:
•
•
1. For example, type Order Number.For example, select Postal Code (Canada) to display the pattern A9A 9A9 in the Pattern box.
Not
e:
8.