cms icon indicating copy to clipboard operation
cms copied to clipboard

[4.5.3]: Default radio button option not applied when field is added to an existing entry

Open thupsi opened this issue 1 year ago • 2 comments

What happened?

Description

When adding a radio buttons field with a default option, this option is not applied to existing entries.

Steps to reproduce

  1. Create a custom field with type radio buttons, at least 2 options, one of wich is set as default.
  2. Add this field to a section's field layout.
  3. Edit an existing entry in this section.

Expected behavior

The default option should be selected

Actual behavior

No option is selected

Craft CMS version

4.5.3

PHP version

No response

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

thupsi avatar Sep 12 '23 18:09 thupsi

This is currently working as intended, but it’s worth us reconsidering, in the same vein as the Dropdown behavior change in 4.5. We’ll discuss internally…

brandonkelly avatar Sep 13 '23 06:09 brandonkelly

Yes, I was indeed comparing it to the current dropdown behaviour. I'm sure you have a much clearer picture than me about possible drawbacks and implications, so I trust you will handle it in the best possible way.

thupsi avatar Sep 13 '23 09:09 thupsi