Fields are empty after moving MetaBox from TAB to sub settings page

Support MB Settings Page Fields are empty after moving MetaBox from TAB to sub settings page

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #37949
    info@ceescoenen.nl[email protected]
    Participant

    I have now 2 rwmb_meta_boxes added to a settingspage with two tabs.
    Instead of tabs I will use a top-level menu page and 2 sub settings pages.

    I have add two sub settings paged, it works.

    When I change the meta boxes from settings page top to the subsettings page AND remove the tab then the MetaBox shows in the sub settings but all the fields are empty.

    What do I wrong?

    #37962
    Long NguyenLong Nguyen
    Moderator

    Hi Cees,

    The top and sub-settings pages have their own option names and save field values to the database in different rows. So the field values will not be displayed when you move the custom fields from the top settings page to the sub-settings page.

    You can try to use the field backup to move the field value to another settings page, please read more on the documentation https://docs.metabox.io/extensions/mb-settings-page/#backup--restore-settings

    #37963
    info@ceescoenen.nl[email protected]
    Participant

    Hi Long,

    Thank you.

    Just to be clear: do I just have to clear the old fields and then delete the code? Or are there still empty fields left in the database?

    #37975
    Long NguyenLong Nguyen
    Moderator

    Hi Cees,

    If you use the builder or code to change the settings page of a field group/meta box, the custom fields will not display on the old settings page but the setting value is still available in the database until you delete it (like post meta).
    You can access your database and delete the old setting value manually.

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