use onvalidation just like any other SQLFORM

On Friday, February 22, 2013 2:22:06 PM UTC+1, Christian Espinoza wrote:
>
> Hi guys, there a way to validate some condition before run the insert of a 
> new record using SQLForm.grid() ?
>
> For example if I need insert a record, but a rule ( a value at the db, a 
> constant) said that the records must be
> only < 5 and I have already 4 records, then the insert can't be run...
>
> Thanks for your time.
> Cheers
> Christian.
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to