I am trying to: Doing some minor changes to a radio buttons field
I expected to see: Updated values
Instead, I got: All selections on all posts are empty and have to be re-selected
Whenever i do minor changes to the values in the radio field, the selection is being reset and empty on all posts.
E.g. if i want to change the text or the link in the values field, i have to work through all posts again an select the right value.
This is quite a big problem, since the site has a growing number of posts.
I am adding the field to a template via a shortcode:
Hello. Thank you for contacting the Toolset support.
Well - what you see is the expected result.
For instance, you have created the Radio filed with the following options:
- Display Text: China and Value: china
- Display Text: USA and Value: usa
- Display Text: Canada and Value: canada
Now, you added few posts where you selected the Radio option "USA" and it will store the value into database as usa.
Now, you change the value for the option "USA" from usa to America, so in database for all the posts you added where you selected the option "USA" will have the value stored into the database as usa hence when you change the option value to America it will loose the current selection because before change the value stored to database was usa and now you changed the value to America.
What you see is expected results and there is no alternate solution I've to offer you at the moment. We discourage to change the option value or you will be responsible to update all the existing posts with the new value.
I do not find this very convinient - the fields are changeable in the wordpress backend.
There should at least be a notice that any change will break things.
From a database design point of view this behavoir makes little sense. It would be easy to handle things differently.
If possible, I'd like to suggest this as a feature request – either by warning users when changing values, or by introducing a way to preserve existing selections.