Is it possible to create an IF statement so if someone selects 'Training for myself' in a dropdown field it sends to url-a but if they select corporate training on the same form and you click the same submit button as before it will send you to url-b
Solved! Go to Solution.
I saw this URL post - Redirect to new page if user selects certain value in form drop down
Which is basically what we want however if there is a way to get it so instead it redirecting straight away you have to click Download Now to make that redirection
Callum Pirie remember to give Jay the Correct answer when you get a chance.
Just on this further..
as you can see I already have a bunch of if statements for this the website we have has regionalised pages such as /en-gb/, /en-us/, /en-ca/ etc and we use the one form on multiple pages which then depending on the URL goes to different success/landing pages.
for example if someone goes to this URL - Professional Diploma in Digital Marketing | Study Online | Enrolling Now it will then push through to success page /download-pddm but using the same form on this page - Msc Masters in Digital & Social Marketing | Enrolling Now it will go to a success page /download-masters
We want to keep these statements however add your statement that you said aswell. Does anybody know if this is possible.
So ideally i want it to be if you click on Training for myself on URL A. It goes to URL A. download page. however when they select Corporate training in the dropdown I want the download now button for URL A to go to URL B and set these up as goals in GA.
I feel like this is possible but my only worry is the regionalisation urls we have, would I need to create individual forms for each page and then use the parameters you mentioned below?
or would the url /en-us/, /en-ca/ etc not matter and the same form could load on any page its on and still work how I want it to.
Not sure of your precise question, but if you need multiple conditions to contribute to Thank You URL selection, you can't use only the Form Editor UI builder. You will need some JS as well.
You can still put the first-level decision in the Form Editor to minimize the amount of code, but if you need to also prepend the current language code to the URL, that supplementary logic needs to be in anlistener.