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

Display descriptive error message in the toast for block errors. #6833

Closed
alexandreIFB opened this issue Mar 13, 2025 · 2 comments · Fixed by #6834
Closed

Display descriptive error message in the toast for block errors. #6833

alexandreIFB opened this issue Mar 13, 2025 · 2 comments · Fixed by #6834

Comments

@alexandreIFB
Copy link
Contributor

Describe the bug
The Toast in the Form blockErrors displays the properties name of the field that threw the error, which is not a clear message to the editor. This results in less descriptive error messages.

To Reproduce

  1. Go to a form with block schema validation [e.g Teaser block].
  2. Submit the form without filling in a required field.
  3. Note the error message that is displayed.

Expected behavior
The error message should display the error field title as defined in the schema, providing a more descriptive reference to the field.

@alexandreIFB
Copy link
Contributor Author

@wesleybl

@wesleybl
Copy link
Member

I can confirm this issue. The Toast shows the field id instead of the title, which would be more informative for the user.

@wesleybl wesleybl added 21 status: confirmed and removed 30 needs: triage New issue that needs confirmation before work begins labels Mar 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants