On Oct11, 7:23pm, "Michael - afewtips.com" <[email protected]> wrote: > Hi, > I need to do this > > ( db.field % .25 == 0 ) > > calculation on a field entered into a form. > > Do I need to create a function that checks (what?) or can it be > entered directly in the > db definition? > > Thanks > Michael
Yes, you can define a function as the onvalidation callback for SQLFORM or for Crud. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

