title: Symfony 2 isClicked on submit buttons always returning FALSE
body: <p>I'm trying to implement two submit buttons to my form. My form looks something like this.</p>
  
  <p>Form:</p>
  
  <pre><code>public function buildForm(\Symfony\Component\Form\FormBuilderInterface $builder, array $options) {
  
      $builder
          // ...
          -&gt;add('gateway', 'submit', array(
              'label' =&gt; 'Go to payment gateway',
          ))
          -&gt;add('save', 'submit', array(
              'label' =&gt; 'Save order',
      ));
      parent::buildForm($builder, $options);
  }
  </code></pre>
  
  <p>Method <code>$form-&gt;get('save')-&gt;isClicked()</code> in controller always returning <code>FALSE</code> . It doesn't depend on which button I click in form, everytime returns <code>FALSE</code>.</p>
  
  <p>Controller: </p>
  
  <pre><code>public function indexAction(Request $request) {
      $form = $this-&gt;createForm(new OrderForm(null));
      $form-&gt;handleRequest($request);
  
      if ($form-&gt;isValid()) {
          $values = $form-&gt;getData();
  
          $action = $form-&gt;get('save')-&gt;isClicked() ? 'front.order.success' : 'front.order.gateway';
  
          if ($action == 'front.order.success') {
              //save order
          } else if ($action == 'front.order.gateway') {
              //something else
          }
  
      }
  
      return $this-&gt;redirect($this-&gt;generateUrl($action));
  }
  </code></pre>
  
  <p>Have you any idea why? Thank you for answers. </p>