Symfony 7 Forms: The Basics
Organizing Form Fields
  Start your All-Access Pass to unlock this challenge
Buy Access Login

Challenge 2 / 2

In what order will the next form fields appear if we render the form with {{ form(form) }} Twig function:

        $builder
            ->add('firstName')
            ->add('middleName', null [
                'priority' => 0,
            ])
            ->add('lastName', null [
                'priority' => 3
            ])
            ->add('birthDate', null [
                'priority' => -5,
            ])
            ->add('birthPlace', null [
                'priority' => -1,
            ])
        ;
Skip challenges and go to theNext Chapter

Turn Challenges Off?

All further challenges will be skipped automatically.
You can re-enable challenges at any time on this page or from your account page.