# confirmation

Source: https://zotonic.com/docs/1744/confirmation

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

Language: en



Check if two inputs are the same.

Useful when a form requires double entry of a password or e-mail address to prevent typos.

Accepts an additional parameter name with the name of the other input field.

For example:

```django
<input type="password" id="password" name="password" value="" />
<input type="password" id="password2" name="password2" value="" />
{% validate id="password" type={confirmation match="password2"} %}
```

Arguments
---------

| Argument          | Description                                                                      | Example                           |
| ----------------- | -------------------------------------------------------------------------------- | --------------------------------- |
| `match`           | The id of the input field that should have the same value.                       | `match="field1"`                  |
| `failure_message` | Message to be shown when the two fields are unequal. Defaults to “Does not match.” | `failure_message="Please retry."` |

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/1744?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/1744?language=en>)
