Yes! just keep in mind, that *before *call SQLFORM.grid/smartgrid/factory
or just SQLFORM or even FORM ( learn two latter details) you can:
1. modify request.vars as you want: request.vars.fieldC='smthng not none'
2. modify fields properties: if request.vars.fieldA:
Hi Sitfan,
I wasn't sure if I could use show_if because I want to evaluate a value
IS_IN_SET(['choice_a','choice_b')
I'd like to show a file upload field if choice_a is selected and a text
field if choice_b is selected.
On Wednesday, January 18, 2017 at 2:23:44 AM UTC-5, 黄祥 wrote:
>
> had
had you tried conditional fields show_if?
ref:
http://web2py.com/books/default/chapter/29/07/forms-and-validators#Conditional-fields
best regards,
stifan
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
-
3 matches
Mail list logo