Open topic with navigation

TIBCO Business Studio™ - BPM Edition 5.4.0

# Validation Script

The final expression in the validation script must evaluate to `true` (if the data are valid), `false` (if the data are invalid), or an array of strings (if the data are invalid and the validation message contains substitution variables).

In the Edit Validation Script dialog box, you can edit the script that determines whether the data submitted are valid, or you can modify the error message that appears when users submit invalid data.

You can use the context object provided while executing the validation to retrieve the value of the given control or pane:

    context.value == "New York";

You can refer to any control by using the `“control.”` notation, or to a pane using `"pane."` notation. To refer to the value of a control, use the latter notation in conjunction with the `Control.getValue()` method:

    control.city_name.value() == "New York";

Note: Validation scripts must have no side effects. Do not set the value of controls nor make any modifications to the form model from within a validation script.

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.