Non-members must purchase a pass to book a resource
  • 28 Sep 2022
  • 1 Minute to read
  • Comment

Non-members must purchase a pass to book a resource

  • Comment

This rule prevents customers who aren't members to book a specific resource if they don't purchase a specific pass as well.


  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.

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

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

record.Resource.Id<> RESOURCE_ID OR record.Coworker.IsMember()  OR HasProduct(record, PRODUCT_ID)
  1. Replace RESOURCE_ID with the relevant resource ID.

In the example below, the resource ID is 1111111.

record.Resource.Id<> 1111111 OR record.Coworker.IsMember() OR HasProduct(record, PRODUCT_ID)

  1. Replace PRODUCT_ID with the relevant product ID.

In the example below, the product ID is 123456789.

record.Resource.Id<> 1111111 OR record.Coworker.IsMember() OR HasProduct(record, 123456789)

  1. Click the Save Changes button.


All done! We recommend trying to book the relevant resource using a dummy customer account that isn't a member and hasn't purchased the relevant pass. If you receive the error message you've defined in the rule, you're good to go!


Was this article helpful?