Multiple Frontend Submission Forms and IDs

Support MB Frontend Submission Multiple Frontend Submission Forms and IDsResolved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #34391
    MikeMike
    Participant

    Hi,

    I am trying to have multiple Frontend Submissions on one page, for each post, with edit="true". I'm doing this in PHP, so using 'echo do_shortcode'. So getting each post id into the shortcode is no problem.

    However, I see each form inputs for each post have the same HTML ID and Name fields. Ajax of course here will not work (as all frontend submissions forms update).

    If I set 'redirect=[page url] in the shortcode it almost works. The page refreshes, only the relevant fields for that post update, but the parameter '?rwmb_frontend_field_post_id=' is added to the URL, and every frontend submission shows the same updated value.

    If I remove that parameter manually, everything is ok, the frontend submission boxes show their correct values.

    What would be the best way to do this with multiple frontend submissions shown, using the shortcode and or PHP?

    #34416
    Long NguyenLong Nguyen
    Moderator

    Hi,

    It's not a good idea to use more frontend submission forms on a page, some features might not work properly. I think you can try to pass the post ID to the URL with the parameter ?rwmb_frontend_field_post_id and redirect the user to a new page to edit the post.
    Like this topic https://support.metabox.io/topic/js-call-mb_frontend_form-shortcode/

    #34423
    MikeMike
    Participant

    Hi,

    Thanks! Ah ok. So I can make that work.

    In fact, for anyone else wanting to do this, I've found a plugin WP Post Popup that opens the post as a modal popup. So although I can't do multiple inline editing with frontend submission, I can get a popup

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