Page 1 of 1

how to get orignal value of field in form on open via php

Posted: Thu May 26, 2016 9:10 pm
by joshsard
hi,

i am currently looking at PunchFactory.class.php to add a validation in Timesheet UI that if some value is changed in the opened form of an existing punch, it will not save unless there is a value in the Note field.

my question is how could i get or store the original value shown in the form, on form open? i will need this to compare with the changed value which could be taken from the gettter/setter methods of PunchFactory.class.php. at first i thought on form open, the gettter/setter methods will the called.