Newer Version Available
Look at What We've Done
Let's revisit the Positions tab to test the validation rules that we've just made.
- Click the Positions tab.
- Click New.
First let's try defining a new position with a value for Min Pay that's larger than Max Pay.
- Specify any value for the required Position Title field.
- In the Min Pay field, enter 80,000.
- In the Max Pay field, enter 40,000.
- Click Save.
Did you see what happened? Your custom error message popped exactly like any other error message in the app!
Now let's test our other validation rule:
- In the Min Pay field, enter 40,000.
- In the Max Pay field, enter 80,000.
- From the Status drop-down list, choose Closed - Not Approved.
- 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.
