Hi

You can use de conditional show_if

http://web2py.com/books/default/chapter/29/07/forms-and-validators#Conditional-fields

db,table.text_field.show_if = (db.table.select_field == Other)




2018-01-12 23:19 GMT-03:00 vtcpe12 <emorybar...@gmail.com>:

> Hi,
>
> I am utilizing the IS_IN_SET functionality to produce a select box in my
> SQLFORM. One of the options is 'Other'. I have another simple text box that
> I would like to force the user to enter a value for if Other is selected in
> the select box. Is that possible with the built in validators?
>
> Thanks.
>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> 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/d/optout.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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/d/optout.

Reply via email to