My site needs the ability for the user to fill out the form ( this one is just renter information grabbing) then when they hit submit I want them to land on my ‘paynow’ page.
According to the Contact Form 7 (https://contactform7.com/redirecting-to-another-url-after-submissions/) we are currently using this is 100% possible BUT I need to embed this code into Enfold template file found below BUT I do not know how to do this at all. HELP!
<script>
document.addEventListener( ‘wpcf7mailsent’, function( event ) {
location = ‘http://alexandriaamericanselfstorage.com/pay-now/’;
}, false );
</script>
OR is there a better way
Hi CassieRamos,
You don’t need to add that code in Enfold template file or the pages.
You just need to edit the contact form 7′ form that you want to use then go to Additional Settings (tab) and put that code there and that should work.
If you need further assistance regarding that, please contact the support for the plugin as they could answer better with it.
Hope this helps :)
Best regards,
Nikko
Believe it or not that is the first thing I tried. Sadly, that is not the solution.
Hi CassieRamos,
Can you try to switch your theme from Enfold to any default WP themes like twentyseventeen? if that fixes issue, please give us your admin access and post it in private content so it is visible only to the moderators. If not, please try to contact the Contact Form 7 support or plugin author, as they can help you with it better than we can.
Best regards,
Nikko