Task #2569
closed
Validation: Support BE validation in projection, show custom validation message for FE validations
Added by Alena Peterová about 4 years ago.
Updated about 4 years ago.
Description
Tested on 10.6.1 and our demo.
Even if a custom validation message is set, it's not displayed. If it is a regex, we get the general message "Form is not valid. Filled form contains invalid values."
It's on form projections and also on standard "More information" tab of a user.
Files
- Subject changed from Custom validation message is not displayed to Custom validation message for EAV is not displayed
- Description updated (diff)
- Assignee deleted (
Ondřej Kopr)
- Target version set to 10.7.0
- Assignee set to Radek Tomiška
- File form-validation.png form-validation.png added
- Tracker changed from Defect to Task
- Status changed from New to Needs feedback
- Assignee changed from Radek Tomiška to Alena Peterová
- % Done changed from 0 to 90
- Affected versions deleted (
10.2.0, 10.6.1)
Custom validation message is shown on FE in field tooltip (override default field validation message):
Note: Toast message from previous screenshot in description is returned from BE for whole form, when form is not valid (one or more form field).
You are right, I didn't notice this, sorry. However, I think there are 2 places where it could be improved:
- attributes edited from the form projection (the validation message is not displayed and the invalid field is not highlighted at all)
- when overriding default validation message - e.g. maximum value of a number, then the default message is displayed:
instead of the configured custom message:
- Status changed from Needs feedback to New
- Assignee changed from Alena Peterová to Radek Tomiška
- % Done changed from 90 to 50
- Status changed from New to In Progress
- Subject changed from Custom validation message for EAV is not displayed to Validation: Support BE validation in projection, show custom validation message for FE validations
- Status changed from In Progress to Needs feedback
- Assignee changed from Radek Tomiška to Vít Švanda
- % Done changed from 50 to 90
- Status changed from Needs feedback to Resolved
- Assignee changed from Vít Švanda to Radek Tomiška
- % Done changed from 90 to 100
I did review and tested it. Thanks for this, especially for implementation of focusing to invalid EAV attribute. It is useful in wizards too.
- Status changed from Resolved to Closed
Also available in: Atom
PDF