Check if a field is visible with WTForms (no patches) -


If any field is visible with WTForms, then what is the most obvious way to confirm it?

I have a gene macro which provides the form field, and it is necessary to leave the rendering label for hidden areas.

I've just been playing around something and have reached this conclusion:

  {% if field.widget.input_type! = 'Hidden'% {{field.label}} {% endif%}  

Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -