- Issue created by @jphelan
- πΊπΈUnited States jphelan
Example source
flexbox: '#type': flexbox first_name: '#type': textfield '#title': 'First Name' '#required': true '#default_value': '[webform_submission:user:first_name:clear]' last_name: '#type': textfield '#title': 'Last name' '#required': true '#default_value': '[webform_submission:user:last_name:clear]' email: '#type': email '#title': Email '#required': true '#default_value': '[webform_submission:user:mail:clear]' address: '#type': address '#title': Address '#required': true '#default_value': country_code: US langcode: '' address_line1: '[webform_submission:user:mailing_address:address_line1:clear]' address_line2: '[webform_submission:user:mailing_address:address_line2:clear]' locality: '[webform_submission:user:mailing_address:locality:clear]' administrative_area: '[webform_submission:user:mailing_address:administrative_area:clear]' postal_code: '[webform_submission:user:mailing_address:postal_code:clear]' given_name: null additional_name: null family_name: null organization: null sorting_code: null dependent_locality: null '#field_overrides': givenName: hidden additionalName: hidden familyName: hidden organization: hidden addressLine1: optional addressLine2: optional postalCode: optional sortingCode: optional dependentLocality: hidden locality: required administrativeArea: required how_did_you_hear_about_this_meeting_: '#type': checkboxes_other '#title': 'How did you hear about this meeting?' '#options': 'Social Media': 'Social Media' 'Support Group': 'Support Group' 'Web Search i.e. Google or Bing Search': 'Web Search i.e. Google or Bing Search' 'Web Ad i.e. Paid Text Ad or Graphic Ad': 'Web Ad i.e. Paid Text Ad or Graphic Ad' 'Post Card': 'Post Card' '#required': true '#default_value': - '[webform_submission:user:how_you_found_us:clear]' actions: '#type': webform_actions '#title': 'Submit button(s)'
- πΊπΈUnited States jrockowitz Brooklyn, NY
The attached webform is simplified example that replicates the bug.
- Merge request !559Issue #3479509: Using a token with a default value on a "Checkboxes other"... β (Merged) created by jrockowitz
- πΊπΈUnited States jphelan
I tired the patch from here but the other checkbox is still checked for me.
https://git.drupalcode.org/project/webform/-/merge_requests/559/diffs - πΊπΈUnited States jrockowitz Brooklyn, NY
Let's try a different approach which should be safer and more reliable.
- πΊπΈUnited States jphelan
That new patch works for me! Other is no longer checked.
-
jrockowitz β
committed 2a53be17 on 6.3.x
Issue #3479509: Using a token with a default value on a "Checkboxes...
-
jrockowitz β
committed 2a53be17 on 6.3.x
- Status changed to Fixed
12 days ago 3:20pm 10 December 2024 -
jrockowitz β
committed 2a53be17 on 6.x
Issue #3479509: Using a token with a default value on a "Checkboxes...
-
jrockowitz β
committed 2a53be17 on 6.x