What are you trying to achieve? Do you want fields to be shown/hidden dynamically in the browser based on the values of other fields? If so, see
http://web2py.com/books/default/chapter/29/07/forms-and-validators#Conditional-fields or use custom Javascript.
If you want to hide a given field when creating the initial HTML rendering of the form, then you can use something like your approach, though you would add a special CSS class:
form.element("#id_element").add_class('hidden')
You would then of course need a CSS definition for the "hidden" class (Bootstrap already includes such a class).
Anthony