if ($focus->column_fields['ticketstatus'] == "Closed") { if ($focus->column_fields['cf_469'] =="" ) { $focus->column_fields['cf_469'] = getUserFullName($current_user->id); } if ($focus->column_fields['cf_629'] =="") { $focus->column_fields['cf_629'] = date('Y-m-d H:i'); } } elseif ($focus->column_fields['ticketstatus'] == "Resolved") { if ($focus->column_fields['cf_469'] =="") { $focus->column_fields['cf_469'] = getUserFullName($current_user->id); } if ($focus->column_fields['cf_629'] =="") { $focus->column_fields['cf_629'] = date('Y-m-d H:i'); } } else { $focus->column_fields['cf_629'] = ""; $focus->column_fields['cf_469'] = ""; $focus->column_fields['cf_630'] = ""; } Code (markup): Hi all, When status = resolved, cf_469 will capture current username and cf_629 will capture current date/time. But when status change to "closed", cf_469 and cf_629 is not empty, so it will not capture the current username and date. So, i want to ask that how to automatic capture the username and date when status change from resolve to closed?
are you pertaining to the form post/get??? your instructions are not that clear based on your code example.