Newer Version Available

This content describes an older version of this product. View Latest

Look at What We've Done

Let's revisit the Positions tab to test the validation rules that we've just made.

  1. Click the Positions tab.
  2. Click New.

First let's try defining a new position with a value for Min Pay that's larger than Max Pay.

  1. Specify any value for the required Position Title field.
  2. In the Min Pay field, enter 80,000.
  3. In the Max Pay field, enter 40,000.
  4. Click Save.

Did you see what happened? Your custom error message popped exactly like any other error message in the app!

Error Message from a Validation Rule The Position Edit - New Position page, with the Min Pay field set to 80,000 and the Max Pay field set to 40,000. An error displays above the Max Pay field stating, "Min Pay cannot exceed Max Pay."

Now let's test our other validation rule:

  1. In the Min Pay field, enter 40,000.
  2. In the Max Pay field, enter 80,000.
  3. From the Status drop-down list, choose Closed - Not Approved.
  4. Click Save.

Our second validation rule is triggered, this time because we didn't specify a value for Close Date. Once we do, the record saves normally.