Non-members must purchase a pass to book a resource
  • 14 Mar 2024
  • 1 Minute to read

Non-members must purchase a pass to book a resource


Article Summary

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


  1. Log in to dashboard.nexudus.com if you aren't already.

  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. Toggle on This rule is active.

  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 test customer account that isn't a member and hasn't purchased the relevant pass. If you see your error message displayed as you try to check out, you're good to go.


Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.