title: making different action in a form in symfony 4
body: <p>I'm trying to make a symfony form with a booking system, the user selects the number of tickets in my first form, then he will be redirected to a different route if he chooses one ticket or two tickets.</p>
  
  <p>Here is my controller :</p>
  
  <pre><code>public function home(Request $request, )
  {
      $form = $this-&gt;createFormBuilder()
                   -&gt;add('numberOfTickets', ChoiceType::class, [
                       'attr' =&gt; [
                           'class' =&gt; 'form-control'
                       ],
                       'choices' =&gt; [
                           '1' =&gt; 1,
                           '2' =&gt; 2,
                           '3' =&gt; 3,
                           '4' =&gt; 4,
                           '5' =&gt; 5,
                       ]
                   ])
  
                   -&gt;setAction($this-&gt;generateUrl('ticket'))                     -&gt;getForm();
  </code></pre>
  
  <p>How can I make a different action depending on the choice in my form, please ?</p>