Customers must buy a product to book a resource
  • 05 Oct 2022
  • 1 Minute to read

Customers must buy a product to book a resource


Article Summary

This validaton rule requires customer to purchase a product if they want to book a specific resource.

For example, you want all customers to purchase a day pass if they don't have one already to book one of your meeting rooms.

You need the following details to create this validation rule:

  • The ID of the resource that shouldn't be booked without a specific product purchase.

  • The ID of the product that should be purchased to book the resource.

Don't have your resource or product IDs yet?

Check out Finding Resource IDs and Finding Product IDs to get them.


  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<> 123 OR HasProduct(record, 432)
  1. Replace 123 with your resource ID.

  2. Replace 432 with your product ID.

Your rule should look similar to the one, with your resource and product IDs instead of 1234456789 and 98765432.

VR_NoBookingIfNoProduct

  1. Click the Save Changes button.


All done! We recommend you test your validation rule by trying to book a resource on the Members Portal with a customer account that didn't purchase the required product. If you get the error message you've defined, your rule is ready 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.