Problem/Motivation
For element type "Checkboxes Other" when a user selects only "Other" from the available options, they are presented with a "Other: Text Input" field, if the user leaves the "Other: Text Input" field empty and selects NEXT on the form, validation occurs and shows 2 errors, one for the "Other: Text Input" field and another for the entire field/element on the form.
If the user left the "Other: Text Input" field empty, then they should only get a validation error for that field. They should not get 2 duplicate validation error messages.
See image below of the duplicate error messages:
Steps to reproduce
Create a new "Checkboxes Other" element with a handful of options. Be sure it is a required field. Be sure that a text input field is displayed when selecting "Other" option. SAVE the element.
On the form select "Other" option for the newly created field. Leave the text input field blank and select NEXT (assuming you are using wizard pages). You will see 2 validation errors under the same field, one seems to be for the empty text input field and the other for the entire field itself.
Proposed resolution
Validation should check if the "Other: Text Input" field is empty if the "Other" option is selected. It should then throw a validation error for the "Other: Text Input" field itself and not the entire element.
Remaining tasks
N/A
User interface changes
N/A
API changes
N/A
Data model changes
N/A