Example 3 Validation Message Referenced from External Resource
You can specify a validation message from an external resource.
Procedure
Create <validations>.properties file under the Presentation Resources special folder in Project Explorer.
The name of the file does not matter as long as the extension is .properties. The file can contain any arbitrary custom display strings, not necessarily only validation messages.
Define validation messages in the <validations>.properties file.
The validation message key must have "validation_" as a prefix. If a key does not start with "validation_", the system does not treat it as a validation message.
Add the newly-created <validations>.properties file to the resources list of the form.
After adding the .properties file as a form external resource reference, the new validation messages are available in the Resource Picker.
In the Define Validation dialog, provide the details of the external resource reference.
The Define Validation Dialog Using External Resources
Click Finish.
If the user submits a value other than the one specified in the validation script, the validation error message from the external resource file appears on the form.