I’m trying to do something similar I think. I need to insert a new post on the frontend. I’m doing something like the following:
acf_form(array(
'post_id'=> 'new',
'field_groups'=>array(123, $AllFieldgroupsAssignedToThisPostType)
);
How can I get the field_groups assigned to the post type?