black friday sale

Custom Fields
Support Meta Box Group Group not working properly

  • Creator
  • #13137
    Resolved Dragan

    I created a group using MB Builder and set it to:

    • collapsible true
    • default_state collapsed

    and added some fields with default values and conditional logic.
    NOTE: my fields work perfectly when not in group

    The result is:

    • The group is not collapsed
    • There is no visual indication that there is a group at all
    • The fields are just displayed as if they are not in a group
    • Default values of fields are not set (aka lost)

    Is there a bug or limitations with the group extension?

    the code:

Viewing 10 replies - 1 through 10 (of 18 total)
  • Author
  • #13159
    Anh Tran

    Hi Dragan,

    I’ve just checked your code and the functionality works. However, the UI for collapsible group is bad and need to update. Here is my screenshot:

    I’ll update the group to address this issue.

    Thanks for letting me know.


    I’m having similar issues with std values not being added, I’ve updated today
    Meta Box Group to Version 1.2.18 and Metabox to Version 4.16.1.

    Is there any upcoming update that will fix this?

    Anh Tran

    Hey guys, the appearance and std value bugs are fixed in the latest version. Please update.


    This is great and std is working as expected.

    Not sure if I should open a new topic but now the values from a field inside a group aren’t being copied when a field is in a group. Each clonable group has ‘clone_default’ => true

    Anh Tran

    Hi Ale, did you set clone_default per sub-field?

    Matthias Nettekoven


    we are experiencing the same issue.

                        'id' => $this->prefix . '_event_guests',
                        'type' => 'group',
                        'clone'  => true,
                        'sort_clone' => true,
                        'collapsible' => true,
                        'default_state' => 'collapsed',
                        'save_state' => true,
                        'name' => esc_html__('Guests', 'ceps'),
                        'group_title' => array( 'field' => 'name' ),
                        'fields' => array(
                                'name' => 'Name',
                                'id'   => 'name',
                                'type' => 'text',
                                'name' => 'Description',
                                'id'   => 'description',
                                'type' => 'textarea',

    When refreshing the page, the tabs are not collapsed. Only when manually triggering them the state gets saved.

    Latest Version of both plugins installed.


    Adding clone_default for every subfield did the trick, thanks.

    Matthias Nettekoven

    @Anh Tran,

    are you aware of the issue? The state entered inside the array is not parsed into the final data HTML attribute output as far as I can see.

    Anh Tran

    Hi Matthias, sorry I was looking to solve Ale’s problem. Let me check with the group state.

    Tu Duong

    Hi, Matthias Nettekoven
    I checked with the code you sent, then found everything working normally, didn’t see the error you described
    code demo :
    video demo:

Viewing 10 replies - 1 through 10 (of 18 total)
  • You must be logged in to reply to this topic.