Symfony - Add text in generated form
<p>I'd like to do something quite simple, but I can't figure out how to manage it. I have a form:</p>

<pre><code>{{ form_start(form) }}
{{ form_widget(form) }}
{{ form_end(form) }}
</code></pre>

<p>There are several text field in it. I'd like to "insert" some text (like <code>&lt;p&gt;my Text&lt;/p&gt;</code>) between two text fields (let's say between <code>name</code> text field and <code>description</code> text field). Form are generated with form builder tool. I've tried something like:</p>

<pre><code>$builder
    -&gt;add('stuffName') // works well (text field 1)
    -&gt;add('addedText', 'text', array('label' =&gt; 'my Text')) // Trouble here!
    -&gt;add('stuffDescription'); // works well (text field 2)
</code></pre>

<p>But it generates a text field (and not a simple text). I don't care if the text is set in the form builder or directly in twig template... As long as it is between my two text fields. Any idea?</p>

<p>Thanks a lot!</p>