add( 'value', TextType::class, [ 'label' => false, 'required' => true, 'help' => 'Format international, exemple : +33 (0)6 11 22 33 44', 'attr' => [ 'data-inputmask' => "'mask': '+99 (9)9 99 99 99 99'", ], 'constraints' => [ new NotBlank(), ], ] ); } public function configureOptions(OptionsResolver $resolver): void { $resolver->setDefaults([ // Configure your form options here ]); } }