How to hide Contact Form 7 after successful send

As you know that contact form 7 provides diffenent action hooks.Here, you can simply use on_sent_ok Javascript action hook.
Through this hook, you can add a JavaScript code which you want to execute after the form is successfully submitted. You can add code through Additional Settings field at the bottom of the contact form page.

Please enter the below mentioned code into Additional Settings field

 

Add a Comment

Your email address will not be published. Required fields are marked *

Skip to toolbar