---
title: "Prevent members from booking if they don't have booking credits"
slug: "prevent-members-from-booking-if-they-dont-have-booking-credits"
updated: 2022-11-14T10:40:26Z
published: 2022-11-14T10:40:27Z
---

> ## Documentation Index
> Fetch the complete documentation index at: https://help.nexudus.com/llms.txt
> Use this file to discover all available pages before exploring further.

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

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. Log in to [dashboard.nexudus.com](https://dashboard.nexudus.com/) if you aren't already.
2. Click [**Settings > Validation rules**](https://dashboard.nexudus.com/settings/3/0/0).
3. Click **Add rule**.
4. Click on **Manual entry**.
5. Name your validation rule.
6. Add a **Description** for your rule to let other admins know what it does at a glance.
7. Toggle on **This rule is active**.
8. Select **Bookings** in the **Record type** drop-down list.
9. Add the **Error message to display if the validation rule is not met**.
10. 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.
