Editing Validation for Claim Amount Field

In this task you will examine another auto-generated validation script, change the setting for when input data are validated, and edit the error message.

Procedure

  1. Click the Claim Amount field in the Customer Information pane.
  2. Click the Validations tab on the control’s Properties view.
  3. In the Execute When list, select On Form Submit.

    Validation is now performed as soon as the user specifies a value for this field.

  4. Verify that the following JavaScript code is in the Script text area:
    this.getForm().numberFormat(this.getValue(),17,2);
  5. Verify that the text in the Message area is as follows:
    Claim Amount not valid. Expecting numeric format 15.2.