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
This is exactly what I have advised previously:
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:
You could use the filter
acf/update_value to get the select field’s value, and if this value does not exist within the options page textarea, you could add it using the
This will take quite a lot of customization, trial and error, debugging. I don’t have a working example of this, but almost anything is possible with code
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 PRO’s Flexible Content field allows you to create smaller pieces of UI and compose them into whole flexible patterns. In our latest article, we show how to use it to create swappable site sections and integrate it all in a theme.https://t.co/ZRocH8oJSp— Advanced Custom Fields (@wp_acf) January 24, 2023
© 2023 Advanced Custom Fields.