# email\_unique

Source: https://zotonic.com/docs/1433/email_unique

URI: https://zotonic.com/id/1433

Language: en



Check if an entered e-mail address is unique by querying <a href="/id/doc_model_model_identity" class="doc-reference doc-reference-model"><code>model#identity</code></a> for the email key:

```django
<input type="text" id="email" name="email" value="" />
{% validate id="email" type={email} type={email_unique} %}
```

Optionally, an rsc\_id parameter can be given to the validator to skip that particular id when doing the uniqueness check. This is useful when you are displaying a form in which the user is editing his own email address.

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/1433?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/1433?language=en>)
