Support

Account

Home Forums General Issues Populate choices of a Select Field Type using SQL query Reply To: Populate choices of a Select Field Type using SQL query

  • The options page use on that tutorial is just an example, I was basically refering to that article for the example of how to add the values for $field[‘choices’].

    As far as keeping states, cities and towns associated, that’s a different story and not easy to do in ACF.

    I’m assuming that you mean that when a state is selected that the cities in that state would show in the city field etc. If that’s the case then you’ll need to add your own javascript for the fields and basically convert an ACF select field into something similar to a post object or relationship field that uses select2. That’s beyond what I can help you with.

    My original answer was for what you asked, can you dynamically generate the choices of a select field.