# Prevent duplicate entries

{% hint style="info" %}
If you are looking for a way to lock specific user roles or to password protect your form read [this article](/features/advanced/password-protect.md) instead. If you want to allow users to only submit a form a maximum of X times read [this article](/features/advanced/lock-and-hide-form.md) instead..
{% endhint %}

For this to work you must have the option to save contact entries enabled. This will be used to compare any previous form submission and decide if the user is allowed to submit the form with the entered data.

First edit your form and open up the "Form Settings" panel. From there, choose "Form settings" from the dropdown. Make sure that "Save data" is set to "Save as Contact Entry".&#x20;

Scroll down to and enable the "Enable custom entry titles". As it's value enter `{email}` so that the email address the user entered will be used as the title.&#x20;

Now also enable the "Prevent submitting form when entry title already exists". This will make sure that whenever the user submits the form it will first check if a similar entry existists with the same title. If this is the case the user will be displayed the error message as defined.&#x20;

{% hint style="info" %}
By default Super Forms will only compare the title to any entries that where created via the current form. If you want to globally check the title you might want to change that option too.
{% endhint %}

<div align="left"><figure><img src="/files/zDGd2sDJemG9oJp1hFZm" alt="Prevent submitting form when entry title already exists"><figcaption><p>Prevent submitting form when entry title already exists</p></figcaption></figure></div>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.super-forms.com/features/advanced/prevent-duplicate-entries.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
