1/3 tabs on my setting page are blank

Support MB Settings Page 1/3 tabs on my setting page are blankResolved

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #49207
    hello@clicklabsdev.com[email protected]
    Participant

    Hi,
    the first two tabs are populated with content fine. however, my third tab is blank. I have assigned fields the same way to all three tabs, but the last one doesnt seem to show. What am I missing ?
    (It is probably something very dumb 😂)
    https://share.cleanshot.com/kXmz2Vdh
    Above are the fields that don't work. Below are the fields that do !
    https://share.cleanshot.com/DCkZNqCX

    #49220
    PeterPeter
    Moderator

    Hello,

    Thanks for reaching out.

    Can you please export the not-working field group to a JSON file and share it with me? Following the documentation https://docs.metabox.io/extensions/meta-box-builder/#export--import

    Also, do you see any JavaScript errors in the Console tab of the browser inspect tool?

    #49226
    hello@clicklabsdev.com[email protected]
    Participant
    {
        "$schema": "https://schemas.metabox.io/field-group.json",
        "autosave": false,
        "context": "after_title",
        "default_hidden": false,
        "fields": [
            {
                "name": "Menu Group",
                "id": "menu_group",
                "type": "group",
                "clone": true,
                "sort_clone": true,
                "min_clone": 0,
                "max_clone": 0,
                "fields": [
                    {
                        "name": "Category Label",
                        "id": "category_label",
                        "type": "text",
                        "limit_type": "character"
                    },
                    {
                        "name": "Item Group",
                        "id": "item_group",
                        "type": "group",
                        "clone": true,
                        "sort_clone": true,
                        "min_clone": 0,
                        "max_clone": 0,
                        "fields": [
                            {
                                "name": "Product Name",
                                "id": "product_name",
                                "type": "text",
                                "limit_type": "character"
                            },
                            {
                                "name": "Product Description",
                                "id": "product_description",
                                "type": "textarea",
                                "desc": "NO EMOJIS",
                                "limit_type": "character"
                            },
                            {
                                "name": "Price",
                                "id": "price",
                                "type": "number",
                                "step": "any"
                            }
                        ]
                    }
                ]
            }
        ],
        "id": "digital-menu",
        "modified": 1761143138,
        "priority": "high",
        "settings_pages": [
            "global-assets"
        ],
        "style": "default",
        "tab": "Digital Menu",
        "title": "Digital Menu"
    }

    Zero errors in the console.

    #49228
    hello@clicklabsdev.com[email protected]
    Participant

    I saw an error with the min/max clones, so i made some edits. Now it flashes before it disappears (still no console errors)

    {
        "$schema": "https://schemas.metabox.io/field-group.json",
        "autosave": false,
        "context": "after_title",
        "default_hidden": false,
        "fields": [
            {
                "name": "Menu Group",
                "id": "menu_group",
                "type": "group",
                "clone": true,
                "sort_clone": true,
                "min_clone": 1,
                "max_clone": 10,
                "default_state": "collapsed",
                "save_state": true,
                "collapsible": true,
                "fields": [
                    {
                        "name": "Category Label",
                        "id": "category_label",
                        "type": "text",
                        "limit_type": "character"
                    },
                    {
                        "name": "Item Group",
                        "id": "item_group",
                        "type": "group",
                        "clone": true,
                        "sort_clone": true,
                        "min_clone": 1,
                        "max_clone": 10,
                        "default_state": "collapsed",
                        "save_state": true,
                        "collapsible": true,
                        "fields": [
                            {
                                "name": "Product Name",
                                "id": "product_name",
                                "type": "text",
                                "limit_type": "character"
                            },
                            {
                                "name": "Product Description",
                                "id": "product_description",
                                "type": "textarea",
                                "desc": "NO EMOJIS",
                                "limit_type": "character"
                            },
                            {
                                "name": "Price",
                                "id": "price",
                                "type": "number",
                                "step": "any"
                            }
                        ]
                    }
                ]
            }
        ],
        "id": "digital-menu",
        "modified": 1761580589,
        "priority": "high",
        "settings_pages": [
            "global-assets"
        ],
        "style": "default",
        "tab": "Digital Menu",
        "title": "Digital Menu"
    }
    #49233
    PeterPeter
    Moderator

    Hello,

    I got it. It happens because the field group setting context is set to after_title. To fix the issue, please follow steps below:
    - Change the Rule to Post type
    - Select Position: After content
    - Save the field group
    - Reload the page
    - Change the Rule to Settings page and select the settings page that you want to show the field group

    screenshot https://imgur.com/dhUEvrW

    Let me know how it goes.

    #49241
    hello@clicklabsdev.com[email protected]
    Participant

    OMG THANK YOU NEVER WOULD HAVE THOUGHT OF THAT ! Worked like a charm.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.