# validation\_error

Source: https://zotonic.com/docs/1828/validation_error

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

Language: en



Render a validation error on the target. Text is given in the text argument.

The `text` argument supplies the failure message.

::: {.note title="Note"}
This action is an incomplete legacy implementation and still needs to be adapted for Zotonic's current validation JavaScript. It constructs a `LiveValidation` validator around an implicit `me` object and should not be used as the basis for new validation code.
:::

License: 

Attribution: 

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