Accessing form values after saving

i need to monitor the change of a field in the form inside the afterSave() method, i know i can access the values ​​via $this->record. But I don't know how I can access the original values ​​and the modified ones. How could I do?
6 Replies
LeandroFerreira
$this->record $this->data ?
_max28
_max28OP2y ago
which of these two gives me the original field and which the modified one?
LeandroFerreira
data = form fields record = model
_max28
_max28OP2y ago
should I use the before save or after save to see the changes made to the fields?
LeandroFerreira
$this->data is available before and after save
_max28
_max28OP2y ago
Alright thank you

Did you find this page helpful?