- 28 Sep 2022
- 1 Minute to read
Prevent new contracts in network locations
- Updated on 28 Sep 2022
- 1 Minute to read
This rule prevents admins from creating contracts if you select a network location as the contract's location.
Log in to the Admin Panel if you aren't already.
Click Settings > Validation rules.
Click Add rule.
Click on Manual entry.
Name your validation rule.
Add a Description for your rule to let other admins know what it does at a glance.
Enable the This rule is active toggle.
Select Contracts in the Record type.
Add the Error message to display if the validation rule is not met.
Add the following code snippet to the Formula field.
record.InvoicingBusiness.RootLocation <> null
Click the Save Changes button.
All done! We recommend you test your validation rule by trying to create a new contract, selecting your network location in the contract's Location field. If you get the error message you've defined, your rule is ready to go!