I would use javascript for this. I may ba adding logic in web2py to do this 
soon.


On Sunday, 2 June 2013 08:01:45 UTC-5, BlueShadow wrote:
>
> I got a database field which needs to be filled when a bolean is true and 
> when its not true it should be empty.
> Thats what I did:
> Field('Booleancheck','boolean'),
> Field('Type','reference Type_table', requires=IS_IN_DB (db,'type_table.id'
> ,'type_table.Name') if request.vars.Booleancheck else None),
>
> This requires the field to be filled if booleancheck is true but when its 
> falls it can be filled. is there a IS_EMPTY() validator?
>

-- 

--- 
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to