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

python - rpy2 import is not working -

c++ - How to load a bitmap from file into the samples buffer -

javascript - How to get MySQL query result returned using $.ajax -