Hi, easy newbie question for you (hopefully)
I have a form with 2 select lists. One drop down allows the user to select a directory, the other lets them select a file. Once you press the form button an URL is built using these 2 selections using a bit of javascript. So far, so good.
I also need to validate the form, so that the user selects something from the select lists, rather than leaving it on the default, which is just the list title. I use the popular Yaromat check form behaviour to do this. This part also works ok.
However, I need to make the script which generates the URL conditional upon the validation being ok, so that if the user hasn't selected something from both lists the URL building and redirect doesn't happen.
At the moment, the validation error message pops up but the user is forwarded to the incorrect URL regardless.
If this makes little sense, check a quick demo I put online here...
How do I join 2 scripts together?
thanks
I have a form with 2 select lists. One drop down allows the user to select a directory, the other lets them select a file. Once you press the form button an URL is built using these 2 selections using a bit of javascript. So far, so good.
I also need to validate the form, so that the user selects something from the select lists, rather than leaving it on the default, which is just the list title. I use the popular Yaromat check form behaviour to do this. This part also works ok.
However, I need to make the script which generates the URL conditional upon the validation being ok, so that if the user hasn't selected something from both lists the URL building and redirect doesn't happen.
At the moment, the validation error message pops up but the user is forwarded to the incorrect URL regardless.
If this makes little sense, check a quick demo I put online here...
How do I join 2 scripts together?
thanks