Redirect After Form Submission from Front-end Modal

Support MB Frontend Submission Redirect After Form Submission from Front-end Modal

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #6747
    jcleavelandjcleaveland
    Participant

    Hi,

    I have several fields that are edited on the front-end via modal. Upon updating the post, the modal closes as it should and everything works. Except there is a query string attached to the end of the url to render the success message (?rwmb-form-submitted=obh_member_meta_status).

    I need to eliminate that query string somehow. The problem is that if a users edits a second meta box from the front-end without navigating away from the current page, the modal opens with the success message rather than the form.

    I tried hooking into rwmb_frontend_after_save_post to redirect back to the main page with no success.

    Any thoughts?

    Thanks!

    #6767
    Anh TranAnh Tran
    Keymaster

    The URL param is used to make sure if users reload the current page, no info is submitted again. It’s quite a common thing in PHP form.

    I’m not clear about this thing: when users edit a second meta box, it should be the 2nd form, which is different from the previous form. So it must have different div for the submit status and couldn’t show the previous messange.

    Can you plz make a screenshot so I can look at the issue closer?

    Thanks

    #6849
    jcleavelandjcleaveland
    Participant

    Hi,

    Forgive the delay. I must not have checked the "email me updates" checkbox.

    You are correct. It only affects the first meta-box edited. Others can be edited effectively. The only issue is if the user wants to edit the recently saved fields - they need to refresh the page without the URL param.

    Perhaps an update to the plugin would allow developers to specify the redirect similar to the way that they can specify the message. In my case, sometimes, I'd like to redirect to a "success" page that would allow the user to decide where to go next. Other times, a full refresh of the page with a javascript success message would be nice.

    We can close this for now. I will not worry about this until the next release of my theme.

    Thanks!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Redirect After Form Submission from Front-end Modal’ is closed to new replies.