Support

Account

Home Forums Add-ons Flexible Content Field Flexible Content Layout Title Manipulation Reply To: Flexible Content Layout Title Manipulation

  • Start here https://www.advancedcustomfields.com/resources/dynamically-populate-a-select-fields-choices/

    You would have to loop over all of the layouts in the flex field to populate the select field.

    I can’t give you any help on dynamic population would work as new layouts are created, not something I’ve ever tried before. But it would involve creating a JS action that triggers when a layout is added or when the field you’re basing it on changes and then writing JS to update the select field(s) choices.

    Targeting events on ACF fields would look something like

    
    $('[data-key="field_XXXXXXX"] .acf-field select')