Support

Account

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

Unread

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.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.