# presence

Source: https://zotonic.com/docs/1751/presence

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

Language: en



Check if an input has been filled in or checked.

For example when a title must be entered:

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

Arguments
---------

| Argument          | Description                                               | Example                           |
| ----------------- | --------------------------------------------------------- | --------------------------------- |
| `failure_message` | Message to be shown when field is empty. Defaults to “\*” | `failure_message="Please enter."` |

License: 

Attribution: 

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