Home › Forums › Bug Reports › Choice field "Other" Repeater Issue › Reply To: Choice field "Other" Repeater Issue
Sure, let me see if I can explain this better. So in this case my repeater name is
upload_publication. This repeater has a radio button sub-field, with a field name that was initially set to
In the post edit screen the repeater shows up fine, with the default languages loaded into the radio button choices and a final ‘other’ option (added with the “Add ‘other’ choice to allow for custom field values”). When I fill out a value here and save the post, the new value is added to the list of options but the values set for all these options all go back to the default option. Going back to the Edit Field Group and opening the repeater, I can see that the Field Name has changed from
upload_publication_4_language. Each time I add a new value in the post edit screen the field name is once again renamed, wth the additions tacking on to the start of the name; so it starts with
upload_publication_4_language but then becomes
upload_publication_1_upload_publication_4_language, etc. The number added seems to be related to which row of the repeater I’m editing; the first row adds a 1, and later rows (I think) are the row number minus 1 (so the fifth row adds a 4, etc).
Hope this is clearer! Thanks for looking into this issue.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
The most recent ACF Chat Friday featured a live demo of how to register CPTs directly in the plugin, one of our most requested features. Check out the summary below for a replay of the demo, and don’t forget to register for the next session! https://t.co/k2KQ3WWBAz— Advanced Custom Fields (@wp_acf) March 9, 2023
© 2023 Advanced Custom Fields.