Hi
When using the front end form and editing a post and using a field group with the option 'default_state' => 'collapsed'
the form loads with the groups expanded and not collapsed. This works for new posts, just not for editing a post. Is there a reason it does not stay collapsed when editing a post?
shortcode
[mb_frontend_form id="dc-product" post_type="products" confirmation="Updated Product Successfully" submit_button="Update" allow_delete="true" ajax="true" edit="true"]
Field Group
[
'type' => 'group',
'id' => 'brand',
'name' => 'Brand Information',
'group_title' => 'Brand',
'clone' => false,
'collapsible' => true,
'default_state' => 'collapsed',
'save_state' => true,
'fields' => [
[
'type' => 'text',
'name' => 'Brand Name', //label for form
'id' => 'product_brand',
'required' => false,
'columns' => 12,
],
]
]
thanks
Nick