# insert\_before

Source: https://zotonic.com/docs/1335/insert_before

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

Language: en



Insert the result of a render action before an HTML element.

It accepts the same arguments as the <a href="/id/doc_template_action_action_update" class="doc-reference doc-reference-action"><code>action#update</code></a> action: use `text` for literal HTML or `template` to render a template. All additional arguments are passed to that template. `catinclude`, `include_all`, and `appear` are also supported.

```django
{% button text="Add warning" action={insert_before target="submit" template="_form_warning.tpl"} %}
```

License: 

Attribution: 

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