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
Hmmm ok, do: $this->form->getState() to get the data on the hook
I found the solution, was that method, thanks