# dialog\_predicate\_new

Source: https://zotonic.com/docs/1920/dialog_predicate_new

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

Language: en



Show a dialog for creating a new [predicate](/id/doc_glossary#term-predicate).

Arguments:

- `title` pre-fills the predicate title.
- `redirect` controls whether the browser opens the new predicate's admin edit page and defaults to `true`.

The submitted title is passed to `m_predicate:insert/2`; duplicate names and permission errors are reported in the dialog.

```django
{% button text="New predicate" action={dialog_predicate_new redirect} %}
```

License: 

Attribution: 

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