0

In my application form updation twig is as follows:

<div class="form-group">
    {{form_label(formUser.name)}} :
   <input class="form-control" disabled="disabled" value="{{formUser.name.vars.value}}" type="text">
   <input id="appbundle_user_name" name="appbundle_user[name]" value="{{formUser.name.vars.value}}" type="hidden">
</div>

It returns null value when updating the form how to solve this issue,to get the output?

A.JRJ
  • 331
  • 1
  • 5
  • 16

1 Answers1

3

disabled is not the same as readonly, it will not be included in the POST variables if that is where the value is null.

noid
  • 106
  • 6