Welcome Guest, Not a member yet? Register   Sign In
validating an "edit" form
#5

[eluser]jleequeen[/eluser]
@xwero

I understand your solution above and why that nifty helper streamline things a bit. I have a question though when it comes to prefilled data. If you have a value in a form field, say 100 that you've prefilled from a database. And you've got some custom validation callback that checks to make sure that the value equals 100. If you type 99 in the field and click submit, the validation is run and triggers an error because it doesn't equal 100. But when the form is refreshed, the prefilled value is put back in along with the error. I would expect the 99 to now be in the field, because that's what you last typed in and the reason the validation is triggered in the first place. Any ideas on why that would happen, or be that way?


Messages In This Thread
validating an "edit" form - by El Forum - 08-13-2008, 12:44 AM
validating an "edit" form - by El Forum - 08-13-2008, 12:57 AM
validating an "edit" form - by El Forum - 08-13-2008, 02:05 AM
validating an "edit" form - by El Forum - 08-13-2008, 02:52 AM
validating an "edit" form - by El Forum - 08-13-2008, 02:42 PM
validating an "edit" form - by El Forum - 08-13-2008, 02:46 PM
validating an "edit" form - by El Forum - 08-13-2008, 07:48 PM
validating an "edit" form - by El Forum - 08-14-2008, 12:33 AM
validating an "edit" form - by El Forum - 08-14-2008, 12:34 AM
validating an "edit" form - by El Forum - 08-14-2008, 08:53 AM
validating an "edit" form - by El Forum - 08-14-2008, 08:55 AM
validating an "edit" form - by El Forum - 08-14-2008, 09:21 AM
validating an "edit" form - by El Forum - 08-14-2008, 09:30 AM



Theme © iAndrew 2016 - Forum software by © MyBB