title: How to hide form fields in twig template?
body: <p>I have a Symfony form that includes two <code>TextType</code> fields. If a certain check evaluates to <code>false</code>, I don't want to display the <code>input</code> fields but output the static content of the field and include the form fields as <code>hidden</code> fields instead. How can I do that?</p>