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

c# - Reactive Extensions ControlScheduler -

multithreading - Reorderings in java memory model -

java - Add color code support to a Bukkit plugin -