Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better styling (new lines) in plugin validation errors #558

Open
vaszig opened this issue Sep 28, 2023 · 1 comment
Open

Better styling (new lines) in plugin validation errors #558

vaszig opened this issue Sep 28, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@vaszig
Copy link
Contributor

vaszig commented Sep 28, 2023

The errors of the plugins are correctly retrieved by the backend but form io doesn't treat them as separate errors, so they are all shown as one string.

phonenumber

@vaszig vaszig added the enhancement New feature or request label Sep 28, 2023
@sergei-maertens
Copy link
Member

Clarification: this is some Form.io cruft in how it collects validation errors, processes them and then feeds them to the EJS template rendering and somewhere in that whole chain the markup gets stripped out (injecting paragraph tags or linebreaks doesn't work).

Disabling template escaping is no option as there may be user input which would allow for XSS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants