Home › Forums › ACF PRO › User Field (Relational), bug when updating field using update_field() › Reply To: User Field (Relational), bug when updating field using update_field()
Did you find why this was happening?
I have the exact same issue, in the admin the select seems to work since the option has the selected attribute:
<select id="acf-field_5e78f48412b5e" class="select2-hidden-accessible" name="acf[field_5e78f48412b5e]" data-ui="1" data-multiple="1" data-placeholder="Choisir" data-allow_null="0" multiple="" size="1" tabindex="-1" aria-hidden="true"> <option value="3" selected="selected" data-i="0">[email protected]….ch</option> </select>
But the select2 doesn’t work, and when saving again from the admin, it resets the value.
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!
ACF wouldn’t be so widely used in WordPress if it didn’t have some pretty amazing capabilities. In this article, we look at a few of the features we’ll discuss during “7 things you didn’t know you could do with ACF” at #WPEDecode later this month. https://t.co/5lnsTxp81j pic.twitter.com/Yf0ThPG1QG— Advanced Custom Fields (@wp_acf) March 16, 2023
© 2023 Advanced Custom Fields.