Category: field

Symfony – FormType – set field display:none by default

in my formType on Symfony I try to hide a default field. So I did like this: ->add(‘amountReduction’, NumberType::class, [ “required” => false, “label” => “Montant de la r├ęduction”, “attr” => [ “style” => “width: 200px; display: none;” ], ])…