title: Symfony Twig override specific form row
body: <p>I have the a form twig template, where I want to parse a specific fields help text with the raw filter (it contains html). The field is called postcode in a form called Clinic</p>
  
  <p>According to here <a href="http://symfony.com/doc/current/cookbook/form/form_customization.html#how-to-customize-an-individual-field" rel="nofollow noreferrer">http://symfony.com/doc/current/cookbook/form/form_customization.html#how-to-customize-an-individual-field</a></p>
  
  <p>Form template: </p>
  
  <pre><code>{% extends 'AgriHealthAhpBundle::admin.html.twig' %}
  {% form_theme form 'AgriHealthAhpBundle:Form:fields.html.twig' %}
  
  {% block _clinic_postcode_row %}
          &lt;div class="row"&gt;
              test&lt;div class="small-12 medium-3 columns label"&gt;{{ form_label(form) }}&lt;/div&gt;
              &lt;div class="small-12 medium-6 columns widget"&gt;
                  {{ form_widget(form) }}
                  &lt;div class="error"&gt;
                      {{ form_errors(form) }}
                  &lt;/div&gt;
              &lt;/div&gt;
              &lt;div class="small-12 medium-3 columns help"&gt;
                  {% if help is defined %}
                      {{ help|raw }}
                  {% endif %}
              &lt;/div&gt;
          &lt;/div&gt;
  {% endblock %}
  
  {% block admin -%}
      &lt;h1&gt;New Clinic&lt;/h1&gt;
  
      {{ form(form) }}
  
      &lt;div class="row form_actions"&gt;
          &lt;div class="small-12 medium-offset-3 medium-2 columns submit"&gt;
              &lt;button type="submit" id="agrihealth_ahpbundle_clinic_submit_visible" name="agrihealth_ahpbundle_clinic[submit]"&gt;Create&lt;/button&gt;
          &lt;/div&gt;
          &lt;script type="text/javascript"&gt;
              jQuery(document).ready(function() {
                  jQuery('#agrihealth_ahpbundle_clinic_submit_visible').click(function(){
                      jQuery('form[name="agrihealth_ahpbundle_clinic"]').submit();
                  });
              });
          &lt;/script&gt;
          &lt;div class="small-12 medium-2 columns cancel"&gt;
              &lt;a href="{{ path('clinic') }}"&gt;
                  Cancel
              &lt;/a&gt;
          &lt;/div&gt;
          &lt;div class="small-12 medium-2 end columns cancel"&gt;
              &lt;a href="{{ path('clinic') }}"&gt;
                  Back to List
              &lt;/a&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  {% endblock %}
  </code></pre>
  
  <p>AhpBundle/Resources/views/Form/fields.html.twig</p>
  
  <pre><code>{% block form_row %}
      {% spaceless %}
      &lt;div class="row"&gt;
          &lt;div class="small-12 medium-3 columns label"&gt;{{ form_label(form) }}&lt;/div&gt;
          &lt;div class="small-12 medium-6 columns widget"&gt;
              {{ form_widget(form) }}
              &lt;div class="error"&gt;
                  {{ form_errors(form) }}
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="small-12 medium-3 columns help"&gt;
              {% if help is defined %}
                  {{ help }}
              {% endif %}
          &lt;/div&gt;
      &lt;/div&gt;
      {% endspaceless %}
  {% endblock form_row %}
  </code></pre>
  
  <p>Anyone can see what I have overlooked, I tried </p>
  
  <pre><code>{% block _clinic_postcode_row %}
  </code></pre>
  
  <p>and </p>
  
  <pre><code>{% block _Clinic_postcode_row %}
  </code></pre>
  
  <p><strong>Solution</strong></p>
  
  <p>As per accepted answer, the form row block needs to fully idetified with shorthand bundle name. The easiest way is to view the source code of the form and identify the text used in each input field and the form name="":</p>
  
  <p><img src="https://i.stack.imgur.com/8rZ2p.png" alt="enter image description here"></p>