Support Forum
Support › MB Frontend Submission › Frontend Submission - 2 Field Groups
Hello,
I followed this video to create "opening hours" for my company post type https://www.youtube.com/watch?v=8nZwyBbAWXU
I was able to get both field groups (company field group and opening hours field group) to show up in the frontend submission form by using this shortcode:
[mb_frontend_form id="company-field-group,company-opening-hours" post_fields="title,thumbnail,excerpt,content" label_title=Company Name" label_thumbnail="Logo / Photo" label_content="Service / Product Info" label_excerpt="Introduction" submit_button="Submit New Company" edit="false" allow_delete="false" post_status="pending" redirect="/company-thank-you"]
However, as you will see from this screenshot https://tinyurl.com/2h847bns
Both field groups are mixed together, what I would like to do is to add a "Subtitle" for the opening hours part such as "Manage Opening Hours" just to make the difference from the company information part with the opening hours section.
Hello Jean,
You can try to use a field custom_html
or heading
in a field group to make a difference from each other. Please read more on the documentation
https://docs.metabox.io/fields/custom-html/
https://docs.metabox.io/fields/heading/
Hello,
Sorry but I need a better guidance about this, since they are 2 field groups in the same form, see the form code:
[mb_frontend_form id="company-field-group,company-opening-hours" post_fields="title,thumbnail,excerpt,content" label_title=Company Name" label_thumbnail="Logo / Photo" label_content="Service / Product Info" label_excerpt="Introduction" submit_button="Submit New Company" edit="false" allow_delete="false" post_status="pending" redirect="/company-thank-you"]
It's one shortcode so how can I integrate the heading/custom html in between the 2 groups? Any better example?
Hello,
Simply, you can add the field heading/custom_html field as the first field of the second field group "company-opening-hours". Does that make sense?