---
title: "Preventing Plan Sales in a Location"
slug: "preventing-plan-sales-in-a-location"
updated: 2022-05-04T12:16:19Z
published: 2022-05-04T12:16:19Z
---

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

# Preventing Plan Sales in a Location

This validation rule will prevent any plan sales in the specified location. Customers and admins alike won't be able to sign up to any plans available in this location's inventory.

          You need your **Location reference** to create this validation rule.

          

You can find your *Location reference* via **Settings > General settings** on the Admin Panel.

![image.png](https://cdn.document360.io/4f9a66c7-3dbb-4052-97d8-5439302e1512/Images/Documentation/image%28568%29.png)

*Make sure you copy and save it before starting the rule setup*

---

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 rule.
6. Add a **Description** of the rule.
7. Enable the **This rule is active** toggle.
8. Select **Contract** 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 snippet in the **Formula** field.

```
record.IssuedBy.Id <>
```

1. Add your *Location reference* at the end of the **Formula** field.

Your validation rule should now look like the example below, with your own location ID instead of *123456* in the **Formula**.

![image.png](https://cdn.document360.io/4f9a66c7-3dbb-4052-97d8-5439302e1512/Images/Documentation/image%28571%29.png)

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

---

Your validation rule is now live. Customers and admins alike shouldn't be able to complete any plan signup from this location.
