- 28 Sep 2022
- 1 Minute to read
Prevent bookings without an assigned customer on the Admin Panel
- Updated on 28 Sep 2022
- 1 Minute to read
This rule prevents admins from creating new bookings if they don't assign them to a customer before saving them on the Admin Panel.
-
If the navigation menu isn't visible, click the menu icon in the top left corner of the page.
-
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 Bookings 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.Coworker <> null
Click the Save Changes button.
All done! We recommend you test your validation rule by trying to book a resource on the Admin Panel, leaving the Customer field empty. If you get the error message you've defined in the rule as you save your changes, you're ready to go!