[web2py] Re: form warning

2014-12-01 Thread Alen Cerovic
Thank you Massimo, here is my situation: I would like to check if LastName and FirstName already exist in database and warn user but allow him to proceed (there are people with sam name and lastname). The idea is to issue a warning when user have just these two fields filled so that he do not

[web2py] Re: form warning

2014-11-30 Thread Massimo Di Pierro
It depends on where you want to do. Personally I would not do this inside the validators. I would instead implement the checks after the form is accepted (since you want it to proceed anyway) form = SQLFORM.factory(Field('number','double')) if form.process().accepted: if not