MB Field Group --> frontend edit, only one entry

Support General MB Field Group --> frontend edit, only one entry

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #48873
    jw_blnjw_bln
    Participant

    I created custom fields.
    This form shall serve as a kind of settings page, so I do not need different entries for each page/post.
    I need only one single entry (of course, containing different fields).
    So I created the form and used the shortcode on a WordPress page (inside Bricksbuilder):
    [mb_frontend_form id="xyz" post_fields="false" ajax="true" redirect=""]

    However, it appears that the data are not being stored.
    If I open the form again, the data are not shown.
    Or do I miss something?

    BTW: What is object_type = post/model (cannot find a description)?

    How can I save a (single)custom field form on the frontend and view and change it afterwards (if needed - only Admin can edit/change)?

    #48880
    PeterPeter
    Moderator

    Hello,

    Thanks for reaching out.

    The frontend form is used to create/edit the post in the frontend. It doesn't support editing the settings page like that.
    If you want to edit only one post, you can add the attribute object_id to the shortcode. For example:

    [mb_frontend_form id="xyz" post_fields="false" ajax="true" redirect="" object_id="123"]

    where 123 is the post ID or custom model ID.

    What is object_type = post/model (cannot find a description)?

    You can find the description in the documentation
    https://docs.metabox.io/extensions/mb-frontend-submission/#adding-the-submission-form
    https://docs.metabox.io/extensions/mb-custom-table/#custom-models

    That means you can submit a custom model stored in a custom table from frontend, like a post.

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