- 26 Feb 2024
- 1 Minute to read
- DarkLight
Prevent plan signups if the plan is from a different location
- Updated on 26 Feb 2024
- 1 Minute to read
- DarkLight
This validation rule helps you prevent plan signups in your current location if the plan used to create the contract is from another location within your network.
It is particularly useful if you name plans in the exact same way across locations and don't want admins to mistakenly create a contract with a plan from the wrong location.
For example, you have Location A and Location B with identical plans. This validation rule prevents the sale of plans from Location A in Location B and vice versa.
Log in to dashboard.nexudus.com 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.
Toggle on This rule is active.
Select Contracts under 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.IssuedBy.Id = record.Tariff.Id
Click the Save Changes button.
All done. Create a dummy contract, selecting a plan from another location to test your rule. If the rule is working as expected you should see your error message as you save your changes.