15.
Read-Only Fields
Keep on Learning!
If you liked what you've learned so far, dive in! Subscribe to get access to this tutorial plus video, code and script downloads.
If you liked what you've learned so far, dive in! Subscribe to get access to this tutorial plus video, code and script downloads.
Whoops, an error! Please, try again later.
2 Comments
i changed the disabled to true to see if my defaultoptions was wrong but even after that the nickname field is modified
Oh really? Can you post some code? If you set "nickname" to disabled => true, the form component will prevent that field from being modified in all cases. This is exactly what we tested for (and saw) in the tutorial. Also, what version of Symfony do you have?
Cheers!
"Houston: no signs of life"
Start the conversation!