On Mar7, 7:40pm, Iceberg <[email protected]> wrote: > On Jan10, 11:53pm, mdipierro <[email protected]> wrote: > > > @Robin, > > > I propose I change and I already implemented in in trunk. > > > def f(form): > > if form.vars.a!=form.vars.b: > > form.errors.a='must be same as b' > > form.errors.b='must be same as a' > > > if form.accepts(....,onvalidation=lambda form: f(form)) > > > Please give it a try. > > > Massimo > > I just follow my memory and google to find this old post, and then try > onvalidation(...) for my first time. It is great. I am writing here as > a remind that, it seems still "undocumented" in where it should be: > http://mdp.cti.depaul.edu/examples/global/vars/SQLFORM > or: > http://localhost:8000/examples/global/vars/SQLFORM
One more. I managed (googled) to find the SQLFORM(...,showid=False) trick, which is not mentioned in doc either. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" 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 -~----------~----~----~----~------~----~------~--~---

