Checkbox and Radio Inputs not retaining selected state after form error

Created on 23 December 2024, 3 months ago

Problem/Motivation

Steps to reproduce

1. Create a webform with radios, checkbox, checkboxes elements
2. Create a required textfield or another (use this to generate error)
2. Go to webform settings and remove client-side validation
3. Submit test form submission with some checkboxes checked, radios selected
4. Note that the values submitted for radios and checkboxes are not rendered

Proposed resolution

Update preprocessing of checkboxes to use `#value` rather than `#default_value`.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.9

Component

Code

Created by

🇦🇺Australia RichardGaunt Melbourne

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024