Home › Forums › ACF PRO › Dynamically Populate a Select Field from Front End or Without Options Page › Reply To: Dynamically Populate a Select Field from Front End or Without Options Page
Hi @awc
This is a tricky one which ACF is not yet setup to do.
What you are asking for, if I have read correctly, is the ability to create a select field which you can also save new choices to.
This is currently possible via the radio field, but not yet for the select field.
It may be possible to customize the select2 JS args and allow a custom value to be saved, however, you will then need to append this value to the options page (I’m assuming you have a textarea field with all user choices)?
Checkout the JS customization here:
http://www.advancedcustomfields.com/resources/adding-custom-javascript-fields/
And the update_value filter here:
http://www.advancedcustomfields.com/resources/filters/acfupdate_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!
Accordions are a great way to group related information while allowing users to interactively show and hide content. In this video, Damon Cook goes in-depth on how to create an accessible accordion block using ACF PRO’s Repeater field.https://t.co/RXT0g25akN
— Advanced Custom Fields (@wp_acf) March 2, 2023
© 2023 Advanced Custom Fields.
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.