Close popup and clear form on successful submission
-
We have implemented a popup form using amp-lightbox and are using wp_safe_redirect to redirect user to a confirmation message page.
Everything works really well, except when the user hits the back button the pop-up displays in an open state with the submitted data still pre-filled. Also, the “status panel” below the form that is injected by AMP continues to show “Redirecting…”.
Is there a way to indicate back to the amp form that it must close the parent light-box and clear the fields once the form is successfully submitted?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Close popup and clear form on successful submission’ is closed to new replies.