Open topic with navigation

TIBCO Business Studio™ - BPM Edition 5.4.0

# Example 3 Validation Message Referenced from External Resource

You can specify a validation message from an external resource.

Procedure
1. 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.

2. 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.

3. 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.

4. In the Define Validation dialog box, provide the details of the external resource reference.
   The Define Validation Dialog Using External Resources

5. 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.

   Note: You can localize the validation error messages. See Localization of Forms.

Did you find this helpful?

Yes No
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO Business Studio™ - BPM Edition

Copyright © 2015-2023. Cloud Software Group, Inc. All Rights Reserved.