How to add only1 checkbox for consent with 4 tabs just before the submit button?

Support MB Tabs How to add only1 checkbox for consent with 4 tabs just before the submit button?Resolved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #44417
    EricEric
    Participant

    Hi There,

    I like to add, on a frontend form, a Checkbox for the users to Consent/Approval all the input shared by the user.

    My issue here is because I have 4 tabs, and I know that I can add easily a Checkbox on each tab (Checkbox + Required + Label and Description), or in one tab (not very UX), but I like to add only 1 checkbox just below the form (rwmb-tab-panels) and before the submit button (rwmb-form-submit).

    I have tried many options, read a lot of post into the Meta Box support and documentation, but nothing who feet my need - maybe because I don't use the right keywords.

    Any idea how I can add 1 Consent Checkbox to validate the all form with all 4 tabs, just before the submit button?

    Thank you,
    Eric

    #44419
    PeterPeter
    Moderator

    Hello Eric,

    I think you can add the consent checkbox field to a new field group and show it separately from the field group that has tabs. To show more field groups in the frontend, you can follow this format:

    [mb_frontend_form id='tab-field-group-1,consent-field-group2' post_fields="title,content"]

    #44420
    EricEric
    Participant

    Hello Peter, and thank you for your time and your positive alternative!

    Meta Box is like Excel... Many of us are using 5% of the options 🙂

    Anyway, your solution did work very well.
    I just had to change a few things into my CSS files, to get back my design on the form.
    Indeed, I could keep IDs in the CSS, because the 2 IDs in a short code | #id-1, #id-2 doesn't work.
    (well, maybe there is a way, but I'm not aware of it lol)

    For people who are facing the same issue...
    As the validation Checkbox was just for making people confirm them data (legal), I only ask a "Required" option, and I did switch-off the "Save field value" in the Advanced tab (because I have forms' data all clean in a "Save data in a custom table").

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