Cloneable Groups and storing in custom table

Support MB Frontend Submission Cloneable Groups and storing in custom table

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #44887
    Nicholas CoxNicholas Cox
    Participant

    Hi

    I have a custom table which is not linked to a post type, just storing data in a custom table. I am using a group clone in my front end form, I want to be able to store the serialized string into another table based on this structure. Similar to how you do Clone as multiple for posts/pages, I just want to re-create this in code after a form has been submitted for custom tables.

    What is the best approach for this? to unserialize the group metabox value and run through the nested array to populate a separate table with this? also is it possible to update a custom table using metabox helpers?

    thanks

    Nick

    #44897
    PeterPeter
    Moderator

    Hello Nick,

    You can use the public API to add or update the field value to a custom table. Please follow the documentation
    https://docs.metabox.io/extensions/mb-custom-table/#add
    https://docs.metabox.io/extensions/mb-custom-table/#update

    Note: the feature "Clone as multiple" doesn't work with the custom table.

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