My goal: validate an email address in our database.
What I think we need to do.. First validate the email address as being in a valid format. In doing so, I'd like to use the existing email validator in FormHandler. After that passes, I'd like to move ahead with our "special" validation by performing a select from our database and then whatever else is necessary.
Will someone point me on how to use the internal validator within my custom validation routine?
I should have thought about that one! Thanks, I have it working.
My next question...
If everything validates as expected and our routine (web service actually) that saves the information to the database returns an error; is there a to redisplay the form with a general error on the page asking to resubmit?
By the way, we have not used the database features of FormHandler because our data is spread across several tables. It did not seem straight forward in the documentation on how to handle an insert/update involving multiple tables represented by a single page form built using FormHandler.
By the way, we have not used the database features of FormHandler because our data is spread across several tables. It did not seem straight forward in the documentation on how to handle an insert/update involving multiple tables represented by a single page form built using FormHandler.
Thanks again!
That is not possible. In that case you must use youre own database handling.
In testing, my onCorrect("Finish_and_move_On") function had true misspelled and it was not working! When I returned "true" instead of "ture;" everything worked as expected!
Sorry for the trouble!
I must say, FormHandler was a great find for us and from my immediate testing, it will save us a ton of time dealing with displaying form for an application we are about to write!