> For the complete documentation index, see [llms.txt](https://docs.super-forms.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.super-forms.com/features/advanced/password-protect.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.super-forms.com/features/advanced/password-protect.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
