Default value of a radio button "yes/no" is lost when translating a webform

Created on 4 January 2024, about 1 year ago

Problem/Motivation

I noticed that when I translated a webform the default values no longer work for "yes/no" fields because the values are also being translated, but they are not re-configurable in the translation of the webform. For custom radio buttons this is working just fine (value itself is not translatable).

Steps to reproduce

- Create a webform
- Add a radio button element
- Select "Yes/No" under options
- Go to advanced and set default value to "Yes"
-> View form and see that yes is selected.
- Translate the form to e.g. Dutch (you can only translate the title)
-> View form in EN --> yes is selected
-> View form in NL --> Nothing is selected

Inspect the element and see that the value is got translated.

Proposed resolution

Not really sure, but I would not expect a value of a radio button to get translated.

Remaining tasks

Create a MR.

User interface changes

N/A

API changes

N/A

Data model changes

N/A

πŸ› Bug report
Status

Active

Version

6.2

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium BramDriesen Belgium πŸ‡§πŸ‡ͺ

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

Comments & Activities

Production build 0.71.5 2024