Support

Account

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

    Hmmm… You can accomplish this using JavaScript. For both cases, first, you need to grab the select field from the DOM then use JS to append the new options. The code should be somethiing like this:

    mySelect = document.getElementById('mySelect-id');
     mySelect.options[mySelect.options.length] = new Option('label', 'new-value');