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
Dan Harrin
Dan Harrin2y ago
yes, but beware that users could modify their values in javascript maliciously dehydrated()
Becker Maxime
Becker MaximeOP2y ago
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
Dan Harrin
Dan Harrin2y ago
i dont understand dehydrated() just adds it to the form output array
Becker Maxime
Becker MaximeOP2y ago
Becker Maxime
Becker MaximeOP2y ago
I wish I couldn't do that, or block the save in back
Dan Harrin
Dan Harrin2y ago
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
Want results from more Discord servers?
Add your server