title: Symfony4 Forms - How do you conditionally disable a form field?
body: <p>So what is the best way to have a form render effectively the same form over and over again, with conditionally disabled fields based on the Entity's property values?</p>
  
  <p>I have an Invoice Entity and need a form for creating the invoice, and also the same form with various fields disabled at various stages of the invoicing process (generated, sent, paid etc).</p>
  
  <p>I think the simplest answer is to disable them dynamically in the twig template via form_row options but surely this will affect server side validation of the form as it is not aware the field has been disabled?</p>
  
  <p>What is the best way to disbale a field based on a value in the database?</p>
  
  <h2><strong>EDIT 1:</strong></h2>
  
  <p>Changed question from <code>Dynamically disable a field in the twig template or seperate class for each form?</code> to <code>Symfony4 Forms - How do you conditionally disable a form field?</code></p>