Prevent members from booking if they don't have booking credits
  • 14 Nov 2022
  • 1 Minute to read
  • Comment

Prevent members from booking if they don't have booking credits

  • Comment

This validation rule prevent members without any money credit to book resources. Contacts can still book resources with or without credit.

This rule doesn't check if members have enough money credits to cover the price of their booking.

It is simply a way to ensure they have some money credit (above 0) in their account before letting them book.


  1. If the navigation menu isn't visible, click the menu icon in the top left corner of the page.

  2. Click Add rule

  3. Click on Manual entry

  4. Name your validation rule.

  5. Add a Description for your rule to let other admins know what it does at a glance.

  6. Enable the This rule is active toggle.

  7. Select Bookings in the Record type drop-down list.

  8. Add the Error message to display if the validation rule is not met.

  9. Add the following code snippet to the Formula field.

isLoggedIn = false OR record.Coworker.IsContact() OR BookingCreditAmount(record.Coworker) > 0
  1. Click the Save Changes button.


All set! Your validation rule is now active. You can test it by trying to book as a member without any money credit. If the rule works, you should receive the error message you defined.


Was this article helpful?