Field('myinteger','integer',default=0),requires=IS_NULL_OR
(IS_INT_IN_RANGE(-10,10)))On Sep 8, 2:48 pm, weheh <[email protected]> wrote: > The saga continues ... > > Unused table fields have been turned off. That gets rid of most > form.errors. However, some of the fields are not turned off. Those > fields have default values set in the Field definition. However, I'm > getting error messages associated with those fields. Such as: > > Field('myinteger','integer',default=0) > > and then after posting the form, I'll get the error message: > > too big or too small! > > associated with myinteger. I can turn myinteger off, but at somepoint > during the form processing, I want to set myinteger to 0, so I'll have > to turn it back on again. Anybody know why this isn't working by > reading the default value from the db definition? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

