Multiple field group ids in a shortcode and tabs

Support MB Frontend Submission Multiple field group ids in a shortcode and tabsResolved

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

    Hi

    In regards to multiple field group ids for a shortcode, is there an option to use tabs to display each field group under a separate tab? so 'meta-box-id-1' as tab 1, meta-box-id2 as tab 2

    [mb_frontend_form id="meta-box-id-1,meta-box-id-2,meta-box-id-3" post_fields="title,content"]
    https://docs.metabox.io/extensions/mb-frontend-submission/#how-to-add-more-field-groups-meta-boxes-to-the-frontend-submission-form

    thanks

    #46246
    PeterPeter
    Moderator

    Hello Nick,

    It isn't possible to use the tab for each field group in the frontend like that. You can use the tab in one field group and add the field group ID to the frontend form.

    #46248
    Nicholas CoxNicholas Cox
    Participant

    hi

    ok so if i add a tab for the whole form for 'meta-box-id-1' and the same for 'meta-box-id-2' etc. Then when i add them to the shortcode they will all appear as tabs? i assume the first declared field group will be displayed first.

    #46257
    PeterPeter
    Moderator

    Hello,

    No, that doesn't work like that. You need to add tabs to one field group "meta-box-id-1" and add this ID to the frontend shortcode.
    If you add more field group IDs to a frontend shortcode, they will be displayed in separate sections (from top to bottom) in the frontend.

    #46294
    Nicholas CoxNicholas Cox
    Participant

    ok so when you add more than one field group IDs to the shortcode, tabs are then not supported

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