Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Checkboxes don't support #states required
Proposed resolution
Refactor the webform's support for radio buttons #states required to also support checkboxes
Comment | File | Size | Author |
---|---|---|---|
#9 | webform-checkbox-required.png | 128.4 KB | Maheshwaran.j |
#7 | 2938414-7.patch | 11.2 KB | jrockowitz |
| |||
#5 | 2938414-5.patch | 10.92 KB | jrockowitz |
|
Comments
Comment #5
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #7
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedThe attached fixes a minor bug in the JS.
Comment #8
Maheshwaran.j CreditAttribution: Maheshwaran.j as a volunteer and at Drupal Partners for Innoppl Technologies Pvt. Ltd commentedComment #9
Maheshwaran.j CreditAttribution: Maheshwaran.j as a volunteer and at Drupal Partners for Innoppl Technologies Pvt. Ltd commented@jrockowitz
I tested in Drupal version 8.4.4.
Your patch applies cleanly and checkbox fields do support required fields now.
Comment #12
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commented@maheshwaranj Thanks for the review.