Hi,
The validation message showing in case of HTML validation error follows following pattern:
- We are fetching the previous element of the input field to get the label name and if present showing the same in error message.
- If the previous html does not contains any html values, then we are fetching the name of input field to add to the validation message.
In case of CBES document which is present in below url:
https://dmsstage.workterra.net/candidate/document-review?param1=53801e8f11a267708640615176824ee0¶m2=9f7c530735a71ea92f05432461b92006¶m3=aadb3bfa6e9dd692c1b3504a33468b0b¶m4=7cb74ae1b7e8246bfee203a9b89afadd¶m5=4438307d31c6c3be025c573da2ee9667¶m6=3c1a780c78acc6ae4283fbf5fbfd7fcb¶m7=b49400ab42ff8edc80fd3a54b208fcea¶m8=4438307d31c6c3be025c573da2ee9667
- There are some inputs where the label is attached before the input, in that case the error message is coming accurate. Example is: Main Phone#
- For some inputs like first_name, the label is not present and the input name is first_name, due to which the error message contains the input name as first_name.
Correction:
CBES needs to correct the input fields name of the templates, so that the validation message contains proper name.
cc - Samir Nishant.Kondapaneni
Hi,
The validation message showing in case of HTML validation error follows following pattern:
In case of CBES document which is present in below url:
https://dmsstage.workterra.net/candidate/document-review?param1=53801e8f11a267708640615176824ee0¶m2=9f7c530735a71ea92f05432461b92006¶m3=aadb3bfa6e9dd692c1b3504a33468b0b¶m4=7cb74ae1b7e8246bfee203a9b89afadd¶m5=4438307d31c6c3be025c573da2ee9667¶m6=3c1a780c78acc6ae4283fbf5fbfd7fcb¶m7=b49400ab42ff8edc80fd3a54b208fcea¶m8=4438307d31c6c3be025c573da2ee9667
Correction:
CBES needs to correct the input fields name of the templates, so that the validation message contains proper name.
cc - Samir Nishant.Kondapaneni