beforeSave get data from form

Hi, I want to use the beforeSave function on an Edit form, but in the docs is not saying how to get the data from the form to run a validation, I can't do it with the rules() directive because there are some custom fields that are generated dynamically and I can't get the data from that
2 Replies
toeknee
toeknee2y ago
Hmmm ok, do: $this->form->getState() to get the data on the hook
Javier Mercedes
Javier MercedesOP2y ago
I found the solution, was that method, thanks
Want results from more Discord servers?
Add your server