Support

Account

Home Forums ACF PRO flexible content field specific subfield in acf_form

Solved

flexible content field specific subfield in acf_form

  • Hello I am trying to create a pagebuilder with ACF.
    Now my problem lies with targeting a specific field from a flexible content field to edit.

    As you can see here:
    http://recordit.co/vWX1Vfkkye

    It loads all the fields of my Flexible content field.
    At the moment my code is hardcoded in my thickbox and looks like this:

    <?php acf_form_head(); ?>
    <?php acf_form(array('post_id' => 233, 'field_groups' => array(266))); ?>

    Now my question is how to target the specific field(s) I want to edit?
    Note that it could be possible to have the field multiple times on the same page (with other content).

    Kind regards
    Dennis de Groot

  • Hi @r3ddevil

    To hide the other fields, the best way would be using conditional logic or using CSS. You can also use a dummy repeater field as a form and then update the flexible content using update_field().

    I hope this helps.

  • I did it totaly with CSS and some jQuery to reposition the element I want to edit.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.