• on_sent_ok deprecation

    I rely fully on the following to send the user to a specific page after submitting my CF7 form.

    on_sent_ok: "location.replace('https://mydomain.org/payment/');"

    I am not a programmer and the help page about the issue is beyond me. I advocated hard for this plugin and my website system. I really hope someone can tell me what to put into Additional Settings to achieve this functionality going forward.

    I beg you not to give me theory; I am providing an exact need. (I’ll donate again if I get the solution and can keep using CF7.)

    I am assuming this deprecation is coming because there is something better to use so I look forward to knowing what that is.

    Thank you.

Viewing 1 replies (of 1 total)
  • Hi,
    I have the same issue, I tried different things. I read I should use below code to redirect to another page, but cannot figure out how to do it. Tried in functons.php file, but then the whole site came down ??

    document.addEventListener( ‘wpcf7mailsent’, function( event ) {
    location = ‘htps://www.cnn.com’;
    }, false );

    can any one help ?

Viewing 1 replies (of 1 total)
  • The topic ‘on_sent_ok deprecation: Need replacement to return user to next page’ is closed to new replies.