Conditional redirect
-
Hello, like others in the past i’m having this issue:
i want to conditionally redirect based on choice, soi put this code in the additional settings, but it always leads to Google page instead of Paypal.
on_sent_ok: ” if (document.getElementById(‘payment’).value==’Paypal’) {location.replace(‘https://www.paypal.com’)} else { location.replace(‘https://www.google.com’) } “i need to redirect to different paypal button pages based on the option selected.
i can find only people asking for this but never an answer.
can i be the lucky one? i really need this, else i need to look for another plugin.thanks
- The topic ‘Conditional redirect’ is closed to new replies.