Add a single field script validation method
Use the procedure in this topic to add a single field script validation method.
The single field script validation method enables you to add more complex validations to your project. If you have a sequence of validation rules, this single script validation is not fired unless all previous rules in the sequence are successful.
If you change the event type, the script sample also changes. Update your project or class script accordingly.
- Open the tab.
-
Select
Add.
The New Validation Method window is displayed.
- In the Name field, enter a validation method name.
-
Select the
Single Field Script Validation from the
Type list and select
OK.
The single field script validation properties window is displayed.
-
Configure the following setting:
Setting
Description
Script Sample
By default, this area contains a single field script sample that you can modify to meet your own needs.
You can modify the script by using the Select and Copy buttons to place the code in an appropriate location in the script editor.
Optional. Select
Show Script to view and edit the script in a larger window.
-
Optional. Test your settings.
The single field script validation method is designed to validate one field at a time. Different fields can have different validation methods, but each method needs to be tested separately.
Enter a test string into the Sample input text field and select
Validate.
A message is displayed below the input field telling you the entered text is valid, or explains why it is not valid.
-
Select
Close to save your single field script validation method.
The single field script validation is added to the list of validation methods.
- Optional. Repeat the above steps to add another single field script validation method.
- Optional. Click OK to close the Project Settings window.
-
Optional. Add one or more of the following: