making form auto close after contact form 7 submission
-
I’m using the following script on the page listed bellow to set a cookie and make sure the form doesnt reopen affter the form is submitted however it doesnt seem to be staying closed please come back to me as soon as possible https://jobsinetfs.com/testpage
function custom_cf7_scripts() { ?>
<script>
// Replace form_7 with the # of your form to ensure
function _cf7_form_3744_on_sent_ok_() {/**
* Here you can simply change 967 to match your Popup ID #.
* The cookies settings will be determined the settings in the editor.
* Any trigger ( auto open, exit intent or scroll triggered ) that is
* Set to manual will have its cookie set using it’s unique settings.
*/
jQuery(‘#popmake-3952’).trigger(‘popmakeSetCookie’);/**
* Close the popup after a 5 second delay.
*/
setTimeout(function () {
jQuery(‘#popmake-3952’).popmake(‘close’);
}, 5000); // 5 seconds}
</script><?php
}
add_action(‘wp_head’, ‘custom_cf7_scripts’, 1000);
- The topic ‘making form auto close after contact form 7 submission’ is closed to new replies.