This topic is locked
[SOLVED]

Update Date field when Status Fielld Changes in PHPR 10.5

4/3/2021 3:51:22 PM
PHPRunner General questions
K
klyle author

There is some old code for this in a locked post, but for 10.5, would it be

Something like if $values["DeliveryVehicleStatusExit"]=1; then set the now() values ?

K
klyle author 4/3/2021

if ($values["DeliveryVehicleStatusExit"]=1) {
$values["DateOfExit"]=now();
$values["TimeOfExit"]=now();
}

Sergey Kornilov admin 4/4/2021

A correction, the following would be the right code:

if ($values["DeliveryVehicleStatusExit"]==1) {
$values["DateOfExit"]=now();
$values["TimeOfExit"]=now();
}