View Full Version : Problem with Server Side validation. When applied to page the form stops working.
blackweldermhe400113
08-04-2010, 09:39 AM
I have a user registration page that I'm applying the server-side validation to. When I apply the validations to the page the form stops posting to my database. I've rebuilt the page and have localized the problem to the server side validation. I currently have the validation bound to the database field in my table. When setting the validation up, do you bind the validation to the field in the table or the input field in your form? That was the only thing I could think it might be, but haven't tried it yet.
Thanks! And hope you can help. My deadline is fast approaching.
Jason Byrnes
08-04-2010, 11:31 AM
validation is applied to the form field, not the database field.
if you continue to have problems, please post a copy of the page.
blackweldermhe400113
08-04-2010, 03:26 PM
Thanks Jason! I'll try that and let you know if I have any further problems.
Jason Byrnes
08-04-2010, 03:34 PM
you're welcome.
blackweldermhe400113
08-04-2010, 04:05 PM
The form will validate now, but if one of the fields doesn't validate then the entire form resets. How can you set it up so that the field values that have passed validation already are still present when the form reloads?
Jason Byrnes
08-04-2010, 05:56 PM
set the initial value of the form elements to use the corresponding binding from the validated entries collection.
blackweldermhe400113
08-04-2010, 08:52 PM
Thanks Jason, that worked!
Jason Byrnes
08-05-2010, 06:52 AM
you're welcome.
vBulletin® v3.8.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.