PDA

View Full Version : How to go to "thank you" page after form is correc


Terri Ryan
05-18-2006, 03:55 AM
I want the form to go to a "thank you for submitting" page and it does after you hit submit, but if the form isn't validated as correct, it still goes to "thank you for submitting". I want the user to be able to go back to the form, fill it out correctly, then...when they submit, it goes to the "thank you for submitting" page.

Thank you for your help.

domedia
05-18-2006, 12:03 PM
Where are you stuck right now? (Code?)

Terri Ryan
05-18-2006, 02:56 PM
I added the behaviors:

onSubmit - Validate Form
onSubmit - Go To URL

What I want it to do is, if the form is filled out incorrectly, the error pop-up window comes up and when they hit OK, it takes them back to the form. If there are no errors, then it takes them to the "thank you for submitting" page.

Right now when they hit submit an error pop-up window appears stating the errors. When they hit okay in that pop-up window, it takes them to the "thank you for submitting" page. It doesn't give the user the chance to fix the errors.

I guess the problem is in the code.

Thanks for your help