J
|
jvoirol author 8/25/2009 |
Hello, I am using PHPRunner 5.1 (Build 2503) I would like to validate a field dependent on the value in another field. I have a timesheet application where the user can choose from a list of time types, i.e. labor, weekend, vacation, holiday, sick, etc. If the user chooses weekend then I want the hours field to be 0. I think I put this in the event, before record added, and return false if the above is true otherwise return true. I think the logic is like this: if $values["type"]="weekend" and $values["hours"]>0 $message "if type is weekend then hours must be 0" return false else return true; Thanks
|