- Issue created by @maynardsmith
- 🇮🇳India jitendrapurohit
Looks like its working fine for me. @maynardsmith Can you please add some more information? Eg Drupal & Webform module version?
This is what I did and the webform submitted fine without any validation issue -
- Imported your attached webform.
- Opened the webform and selected a contact => Tag, Group and other information loaded automatically (See screeenshot).
- I haven't touched any other field and simply clicked on submit.
- The webform was submitted. - 🇬🇧United Kingdom maynardsmith
Thank you @jitendrapurohit
You have uncovered a subtlety that I had missed. The problem does not occur if the first option in the Tags field is checked (with or without others). It does occur of one of the others is checked, but not the first one. My statement above that it does not occur on Privacy Preferences is wrong - I must have only tested that field with the first one checked.
I should have included the version details before. This is on: Drupal 9.5.8; CiviCRM 5.60.0; Webform 6.1.4; Webform CiviCRM Integration 6.2.4.
- Status changed to Needs review
over 1 year ago 12:07pm 6 May 2023 - 🇮🇳India jitendrapurohit
Ah yes @maynardsmith. I was able to replicate it now for other checkbox elements.
Looks like webform assigns required=required attribute to the first checkbox element. Triggering a change event on the 3rd checkbox does not toggle the required attribute from the first option. I've raised a PR to fix - https://github.com/colemanw/webform_civicrm/pull/875
Can you please apply the patch and review it?
Thanks.
- 🇬🇧United Kingdom maynardsmith
Thank you. Works for me (versions as above).
Tony