Support

Account

Home Forums Add-ons Flexible Content Field Populate select fields dynamically using JavaScript API Reply To: Populate select fields dynamically using JavaScript API

  • Thanks for the help John!

    As I’m working with flexible content, I had to get the index:

    $index = preg_replace('/\D/', '', $field['id']);
    $post_type = get_field('content_'.$index.'_select_post_type');