Support

Account

Home Forums Add-ons Flexible Content Field Flexible content layout by javascript API

Helping

Flexible content layout by javascript API

  • Hi,

    I’m trying to add a flexible content layout by using Javascript API once i load the page on the backend. I managed to automatically add it using:

    
    var field = acf.getField( 'field_5aeadb9ea5076' );
    field.add( { layout: 'slider' } );
    

    Now the question is how i can also add some content to the layout field. For example i have a text field ‘title’.

    Hope someone already faced this challenge before.

  • I am facing the same issue.

    @alexandru-b
    did you find a solution?

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

You must be logged in to reply to this topic.