Hi Everyone,
I was using the following code on my LP to split users based on their response to a drop-down field in my form. Depending on their selection to the dropdown, they were sent to a different thank you / confirmation page.
<script>
jQuery(document).ready(function() {
jQuery('select#select_option').change(function() {
window.module.lp.form.data.confirmData = ({
"I am interested in new hearing aids" : "https://promo.ziphearing.com/thanks",
"I need service on my current hearing aids" : "https://promo.ziphearing.com/service-resound/"
})[jQuery(this).val()];
});
});
</script>
For whatever reason, just today the script stopped working. Any ideas on a solution or alternative code?
This is one of the pages I am using it on: https://promo.ziphearing.com/phonak-testing/
Thanks in advance!