title: Symfony Form Event add Error to specific field
body: <p>My scenario is the following:</p>
  
  <p>If the user choose true from "maxRedemptionForDiscount" and type "0" into the "maxRedemptionForDiscountValue" there should be an error message rendering to the specific field (at the position of the TextType field)</p>
  
  <p>This is the form with an eventListener:</p>
  
  <pre><code>public function buildForm(FormBuilderInterface $builder, array $options)
  {
      $builder-&gt;add(
          'maxRedemptionForDiscount',
          ChoiceType::class,
          [
              'placeholder'        =&gt; false,
              'multiple'           =&gt; false,
              'choices'            =&gt; [
                  true  =&gt; 'discount.form_fields.set_max_redemptions',
                  false =&gt; 'discount.form_fields.unlimited',
              ],
              'label'              =&gt; 'discount.form_fields.max_redemption_for_discount',
              'translation_domain' =&gt; 'entities',
              'required'           =&gt; false,
              'error_bubbling'     =&gt; true,
              'attr'               =&gt; [
                  'class' =&gt; 'maxRedemptionForDiscountSelect',
              ],
          ]
      )-&gt;add(
          'maxRedemptionForDiscountValue',
          TextType::class,
          [
              'label'              =&gt; 'discount.form_fields.set_max_redemptions',
              'translation_domain' =&gt; 'entities',
              'required'           =&gt; false,
          ]
      )-&gt;addEventListener(
          FormEvents::PRE_SUBMIT,
          [$this, 'onPreSubmit']
      );
  }
  </code></pre>
  
  <p>and this is the onPreSubmit function:</p>
  
  <pre><code>/**
   * @param FormEvent $event
   */
  public function onPreSubmit(FormEvent $event)
  {
      $data = $event-&gt;getData();
      $form = $event-&gt;getForm();
  
      if ($data['maxRedemptionForDiscount'] == 1) {
          if ($data['maxRedemptionForDiscountValue'] == 0) {
              $form-&gt;addError(new FormError('error message'));
          }
      }
      $event-&gt;setData($data);
  }
  </code></pre>
  
  <p>Here is the twig code:</p>
  
  <pre><code>{{ form_row(form.maxRedemptionForDiscount) }}
  
  &lt;div id="maxRedemptionForDiscountValue"&gt;
      {{ form_row(form.maxRedemptionForDiscountValue) }}
  &lt;/div&gt;
  </code></pre>
  
  <p>This render a error message above the form.
  But what I want i to render a error message to the specific field.</p>
  
  <p>This does not work:</p>
  
  <pre><code>$form-&gt;get('maxRedemptionForDiscountValue')-&gt;addError(new FormError('error message'));
  </code></pre>
  
  <p>If I try this the error message will disappear at the top of my form, but not showing up at the specific field position. </p>
  
  <p>What I am doing wrong here?</p>