Form disabled
Is it possible to get all the disabled components in the save() method, to allow me to put restrictions in back ?
6 Replies
yes, but beware that users could modify their values in javascript maliciously
dehydrated()
okay thanks
But when I add dehydrated to my component I can no longer modify it except that I would like to modify it when it is not disabled
I would like to add a check in my save method
i dont understand
dehydrated() just adds it to the form output array
I wish I couldn't do that, or block the save in back
why do you want them dehydrated
you can access the current model with $this->record
you dont need them in the $data array if you dont want them saved