forms icon indicating copy to clipboard operation
forms copied to clipboard

Improve error message for required fields

Open PVince81 opened this issue 2 years ago • 0 comments

Using the required-attribute to generate error messages means that they might at times be misleading. In the example below the user need to choose one of the four checkboxes, but the error message simply says that the user must check the first one to continue. Since only the first object with this attribute gets an error message this can be quite confusing.

image

Suggestion:

  • Design and implement custom error messages. They should tell what the issue is and how to resolve it where possible
  • They must be connected to their form objects in the code
  • Avoid using the required-attribute

PVince81 avatar Jul 15 '22 14:07 PVince81