For example, you can display a custom error message when users enter something in a field that does not match what the script for a field expects. For example, a numeric field, such as Quantity, can have a script attached to it that says the number in this field cannot be greater than 100. If the user enters a number greater than 100, a custom error message appears.
   <validationScript dp_scriptMessage=”message1″/>
   <validationScript dp_scriptMessage=”DP Script Message – The quantity must be less than or equal to 100.”/>
Livecycle script message To dynamically populate a validation script message
Another example could be to provide custom error messages attached to a script in another language. The data file you point to could have the following defined for script validation:
   <validationScript dp_scriptMessage=”Entrez un nombre inférieur ou égal à 100.”/>
Livecycle validation script french To dynamically populate a validation script message
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:
Livecycle validation script To dynamically populate a validation script message
See also 

To dynamically populate a validation script message