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
Post a Comment