In this wordpress tutorial for beginners you will learn how to add redirection in form after submit to any page or link (url) based on drop down value select / selection by user in dropdown menu list in cf7 in wordpress website by adding JavaScript code;
** Use this Script Code:
document.addEventListener( 'wpcf7mailsent', function( event ) {
var lpLocation = document.getElementById("menustudent").value;
if (lpLocation == "Student") {
location = 'https://google.com';
} else if (lpLocation == "Professional") {
location = 'https://example.com';
}
}, false );
In Custom Code add your form dropdown ID.
#redirection #dropdown #redirect #value #user #contactform7 #cf7 #script #javascript #form #wordpress #wordpresstutorial #webtaskwithhassan #hassangilani
Watch video How to Redirect Form After Submission Based on Dropdown Value via Script in Contact Form 7 WordPress online without registration, duration hours minute second in high quality. This video was added by user WebTask With Hassan 08 August 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 96 once and liked it 4 people.