Redirecting to different thank you pages (LOOKING FOR HELP)

#1

Hey, Im trying to redirect to different thank you pages based on answers in my contact form.

This is the java script I have used (below), but it does not seem to be working. I have placed it ‘before body end tag’

Can any one advise on what I need to change to get it to work?

Thanks,

< script (removed this > to get it to post here properly)

$("#online_monthly_revenue_optin").live(‘change’, function() {

switch ($(this).val()) {

case 'Under $10K per month':
    window.module.lp.form.data.confirmData = "https://bing.com";
    break;
case '$10-50K per month':
    window.module.lp.form.data.confirmData = "https://google.com";
    break;
case '$50-150K per month':
    window.module.lp.form.data.confirmData = "https://google.com";
    break;

}

});

</script

#2

Hey Adam,

If you change “window.module.lp.form.data.confirmData” to “window.module.lp.form.data.url” it should work.

Let me know if that fixes it.