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.

Procedure
  1. Open the Project Settings > Validation tab.
  2. Select Add icon Add.

    The New Validation Method window is displayed.

  3. In the Name field, enter a validation method name.
  4. Select the Single Field Script Validation from the Type list and select OK.

    The single field script validation properties window is displayed.

  5. 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 Script Icon Show Script to view and edit the script in a larger window.

  6. 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 Valid Field Result icon Validate.

    A message is displayed below the input field telling you the entered text is valid, or explains why it is not valid.

  7. Select Close to save your single field script validation method.

    The single field script validation is added to the list of validation methods.

  8. Optional. Repeat the above steps to add another single field script validation method.
  9. Optional. Click OK to close the Project Settings window.