Custom Fields
Re-Envisioned
Support MB Frontend Submission Multiple forms of same type on same page

  • Creator
    Topic
  • #29315
    Smiffy
    Participant

    My use case is for users to save and edit details about their children to be used when booking out sporting sessions. My implementation is outputting a front end form in a "foreach" loop so that each child can be seen on one page. I can see that there are duplicate ids and also, if there is a datepicker field, this only registers on the first field encountered and since there are multiple ids, this doesn't work as expected.

           foreach($children as $child) //child is post type
            {
                $shortcode = "[mb_frontend_form id='88' post_fields='title' post_id='".$child->ID."' post_type='child' edit='true' allow_delete='true' label_title='Name' redirect='/?page_id=18&children']";
                echo do_shortcode($shortcode);
            }

    Are there any hooks that can be used to filter the content of the form? Or perhaps a different method to allow multiple forms of the same type on the same page?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.