DrumAt5280
Technical User
I have a form with 3 select boxes that allow you to select the state / metro area / city. The select boxes refresh the page with OnChange each time a selection occurs - all is working well.
What i want to happen when the user clicks on the submit button is to send the user to the action page.
I have created a condition with Coldfusion to not have the action statement in the form tag until all 3 select boxes have values. And this works fine.
The problem comes when the user has made all his selections and then reselects a different state then all of sudden the onChange event sends them to the action page. I don't want this to happen - I only want to send them to the action page ONLY when they have pressed the Submit button.
What i am asking is a way to write my code this way:
What i want to happen when the user clicks on the submit button is to send the user to the action page.
Code:
<form method="post" action="actionPage">
I have created a condition with Coldfusion to not have the action statement in the form tag until all 3 select boxes have values. And this works fine.
The problem comes when the user has made all his selections and then reselects a different state then all of sudden the onChange event sends them to the action page. I don't want this to happen - I only want to send them to the action page ONLY when they have pressed the Submit button.
What i am asking is a way to write my code this way:
Code:
<If user makes selections from the select box - just refresh the page> (I have this part working)
<If the user has made selections to the select boxes (I have this validation working fine) AND presses the Submit button - then place action="actionPage" in to the form tag>