# acceptance

Source: https://zotonic.com/docs/1743/acceptance

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

Language: en



Check if an input value evaluates to true.

Can be used in combination with a check box that must be checked on submit.

For example:

```django
<input type="checkbox" id="accept" name="accept" value="1" />
{% validate id="accept" type={acceptance} %}
```

Arguments
---------

| Argument          | Description                                                                 | Example                                      |
| ----------------- | --------------------------------------------------------------------------- | -------------------------------------------- |
| `failure_message` | Message to be shown when the input is true. Defaults to “Must be accepted.” | `failure_message="Please agree to our TOS."` |

License: 

Attribution: 

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