# Password protect

{% hint style="info" %}
If you are looking for a way to prevent duplicate entries read [this article](/features/advanced/prevent-duplicate-entries.md) instead. If you want to lock a form after specific amount of submissions read [this article](/features/advanced/lock-and-hide-form.md).
{% endhint %}

Simply edit your form and go to Form Settings > Password Protect (see image below). Here you can define the password required to submit the form.

Optionally you can also define the form to be only submitted by specific user roles. For instance, you can only allow users with the `administrator` role to submit the form.

You might also just want to hide the form from any locked out users, this works well together with the [Lock & hide form](/features/advanced/lock-and-hide-form.md) feature.

Another option is to only allow logged in users or to hide the form from not logged in users and visa versa.

<div align="left"><figure><img src="/files/9N9LwVtlWIy2zcq2YIXU" alt="Password protect WordPress form and based on user roles"><figcaption><p>Password protect WordPress form and based on user roles</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/password-protect.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.
