---
title: "Visitors Can Only Be Members or Contacts"
slug: "visitors-can-only-be-members-or-contacts"
updated: 2024-01-31T12:29:08Z
published: 2024-01-31T12:29:08Z
canonical: "help.nexudus.com/visitors-can-only-be-members-or-contacts"
---

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

# Visitors Can Only Be Members or Contacts

This validation rule only allows visitor registration if visitors are have a customer account Nexudus. Customers and admins won't be able to register any visitor who isn't already a member or contact.

---

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 **Visitors** as your **Record type**.
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.Coworker.IsMember() OR record.Coworker.IsContact()
```

*Your validation rule should look similar to the example below.*

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

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

---

Your validation rule is now active. You can test the rule by trying to register an external visitor on the Admin Panel or the Members Portal. If the rule works, you should receive the error message you've defined.
