skyrun
Active Member
PHP:
if ('{srms_work_orders___status_raw}' == '3'
or '{srms_work_orders___status_raw}' == '4'
or '{srms_work_orders___status_raw}' == '6' ) {
echo 'here';
return date('m/d/y');
} else {
return '';
};
trying to set the default date based on a status with the code above. 'here' displays so it's not a logic issue.
but it doesn't work. so tried just this:
PHP:
//return '2019-01-01';
return '01/01/19';
tried both lines, and neither worked to set this element. format of element is m/d/y
eval is set to YES.