[web2py] Re: SQLFORM.grid field is not empty if another field is full

2014-12-01 Thread Anthony
You can either use an onvalidation function or do something like: Field('end1', requires=IS_NOT_EMPTY() if request.post_vars.start1 else None) Anthony On Monday, December 1, 2014 8:27:30 AM UTC-5, Yebach wrote: Hello I have a SQLFORM.grid and I have to raise error for user if he

[web2py] Re: SQLFORM.grid field is not empty if another field is full

2014-12-01 Thread Yebach
Thanx. Nice solution On Monday, December 1, 2014 2:46:24 PM UTC+1, Anthony wrote: You can either use an onvalidation function or do something like: Field('end1', requires=IS_NOT_EMPTY() if request.post_vars.start1 else None) Anthony On Monday, December 1, 2014 8:27:30 AM UTC-5,