---
title: "Prevent customers from signing up to the same plan twice"
slug: "prevent-customers-from-signing-up-to-the-same-plan-twice"
updated: 2024-02-26T15:22:00Z
published: 2024-02-26T15:22:00Z
---

> ## 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.

# Customers cannot sign up to the same plan twice

This rule is designed to prevent any customer from being signed to the same plan more than once.

*For example, you offer a free trial plan and don't want customers to be able to sign up to it more than once on the Members Portal or the Passport app while also preventing admins from doing the same on the Admin Panel.*

All you need is the **ID of the plan** that customers shouldn't be able to sign up to more than once.

          Don't know know your plan's ID?

          

[Find your plan ID](/v3/docs/finding-plan-ids) before you get started.

---

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 **Contracts** 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.

```
record.Tariff.Id <> 123 OR WasInPlan(record, 123) = false OR userHasAnyRoles = true
```

1. Replace **123** with your plan ID.

Your validation rule should look similar to the example below, with your own plan ID instead of 123456789. ![VR_NoDoubleSignupSamePlan](https://cdn.document360.io/4f9a66c7-3dbb-4052-97d8-5439302e1512/Images/Documentation/VR_NoDoubleSignupSamePlan.png)

1. Click the **Save Changes** button.

---

All done! We recommend testing your rule by trying to sell the relevant plan to a dummy customer who's already signed up to this plan. If you receive the error message defined in the rule, you're good to go!
