All Python gets executed on the server before the page is returned to the
browser, so it is not possible to use Python to change HTML dynamically in
the browser based on user input. This must be done via JavaScript. However,
you can use the built-in conditional fields functionality (check the link I
included), and the JavaScript will be handled for you by web2py.
Anthony
On Saturday, August 29, 2015 at 1:44:58 PM UTC-4, José Eloy wrote:
>
> Thanks Anthony for your answer.
>
> Yes, I want to show/hide elements dinamically based in values of other
> fields, I know I can do this using javascript or css, but I'd like to use
> either
>
> form.element("#id_element")['_show'] = True
> or
> form.element("#id_element")['_show'] = False
>
> Is it possible? Is there another way?
>
> Regards.
>
>
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.