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.
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?
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.
We can close this for now. I will not worry about this until the next release of my theme.
Viewing 3 posts - 1 through 3 (of 3 total)
The topic ‘Redirect After Form Submission from Front-end Modal’ is closed to new replies.