Task #2569
closedValidation: Support BE validation in projection, show custom validation message for FE validations
100%
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
Updated by Alena Peterová about 4 years ago
- Subject changed from Custom validation message is not displayed to Custom validation message for EAV is not displayed
- Description updated (diff)
Updated by Vít Švanda about 4 years ago
- Assignee deleted (
Ondřej Kopr) - Target version set to 10.7.0
Updated by Radek Tomiška about 4 years ago
- 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).
Updated by Alena Peterová about 4 years ago
- File validation_lownumber.png validation_lownumber.png added
- File validation_number.png validation_number.png added
- 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:
Updated by Radek Tomiška about 4 years ago
- Status changed from Needs feedback to New
- Assignee changed from Alena Peterová to Radek Tomiška
- % Done changed from 90 to 50
Updated by Radek Tomiška about 4 years ago
- Status changed from New to In Progress
Updated by Radek Tomiška about 4 years ago
- 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
I've added:
- Support for BE validations into projections,
- custom validation message is used for FE validations too now.
Commit:
https://github.com/bcvsolutions/CzechIdMng/commit/3108c1882debb4cbf7426ea3a5f2d71158c9df17
Could you provide me a feedback, please?
Updated by Radek Tomiška about 4 years ago
I've added focus to field with validation failed, commit:
https://github.com/bcvsolutions/CzechIdMng/commit/a537f41fa21eb47f5d04c5952afd46149d2190f1
Updated by Vít Švanda about 4 years ago
- 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.
Updated by Radek Tomiška about 4 years ago
- Status changed from Resolved to Closed