- π³π±Netherlands tess bakker
Found a way to reproduce the issue:
1. Import yml file in the attachment
2. Test form, select option b
3. Select option 'Other...'
4. Submit form
5. Error 'Other req if B field is required. ' is visible two timesA workaround for this issue is to change the 'wrapper type' to 'fieldset', the option can be found under the advanced tab of the form element.
Or remove the `#wrapper_type` from the config file.The conditions are maybe not needed, but didn't test that.
- π³π±Netherlands tess bakker
The above workaround works only for Olivero, if you change the theme to Claro, the message is duplicated again.
Maybe a feature or bug in Olivero?
- πΊπΈUnited States jrockowitz Brooklyn, NY
I was able to replicate #7 but I am not going to be able to fix for this issue because conditional logic is displaying the required error for the form element via
\Drupal\webform\WebformSubmissionConditionsValidator::validateForm
and other element is displaying the required error for the webform_select_other element via\Drupal\webform\Element\WebformOtherBase::validateWebformOther
.