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
There is a really common UI pattern where a user is asked to check a box before entering a value. This creates two values that need to handled/parsed when generally you only need to store the entered value.
For example, if a user wants to enable pattern validation they should check the 'Pattern' checkbox and then enter the Pattern's Regular Expression. Technically, on the entered pattern needs to be saved for an element. The checkbox can be checked when a pattern is defined.
Proposed resolution
Provide a checkbox value input.
Comment | File | Size | Author |
---|---|---|---|
#6 | 2941740-checkbox-value-element-6.patch | 13.3 KB | jrockowitz |
|
Comments
Comment #6
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #8
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commented