You can do

db.mytable.myfield.requires='...'
form=SQLFORM(db.mytable)

On Jan 16, 9:44 pm, tomt <[email protected]> wrote:
> Hi,
>
> I have learned to use SQLFORM to generate forms.  The validation
> defined in the db model works as expected, but there are times when I
> want to write a controller that uses a different validation than what
> is defined in the model.  (Specifically, I want to force a different
> date validation)
>
> From what I've read in the manual, and in web2py-users, I can  define
> the form manually using FORM and specify the validation on each field,
> but I was hoping there was a way I could do this with SQLFORM.
>
> I'd appreciate any recommendations and/or examples.
>
> Thanks, - Tom

Reply via email to