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

Discussion for TimeTrex open source community developers.
Post Reply
joshsard
Posts: 55
Joined: Sun Feb 14, 2016 6:09 pm

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

Post 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.
Post Reply