WordPress Development Asked by Muhammad Ishaq on December 10, 2021
Actually i am try to show the short code of contact form 7 in the popup window . but the The form appears in the popup window when i submit the form page loads.
i want to stop the page after submitted and show success message on popup.
Not sure about ajax, but you could use a custom DOM event to run some javascript...
From the "contact form 7" documentation:
The simplest way is utilizing Contact Form 7’s custom DOM event to run JavaScript. The following is an example of script that redirects you to another URL when the wpcf7mailsent event occurs:
<script>
document.addEventListener( 'wpcf7mailsent', function( event ) {
location = 'http://example.com/';
}, false );
</script>
Answered by Trevor J on December 10, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP