Support

Account

Home Forums Add-ons Flexible Content Field Populate Flexible Content Rows Programmatically Reply To: Populate Flexible Content Rows Programmatically

  • For people reading this since the new JavaScript API was released, here’s the new method for adding a row to a flexible content field:

    var field = acf.getField( 'field_5f4f704c24dcf' );
    field.add( { layout: 'layout_name' } );