Hi Abu, I have a column which is a select type with values of 0 & 1. I have another column with date in like 12-08-15.
Am I able to set lead_status as 1 if leaddays = todays date? Looked at conditional data but couldn't get it working?
$col = array();
$col["title"] = "Status";
$col["name"] = "lead_status";
$col["edittype"] = "select";
$col["editoptions"] = array("value"=>'1:Turn Leads On;0:Turn Leads Off');
$cols[] = $col;
$col = array();
$col["title"] = "Off Until";
$col["name"] = "leaddays";
$col["editrules"] = array("required"=>true);
$col["formatter"] = "date";
$col["formatoptions"] = array("srcformat"=>'Y-m-d',"newformat"=>'d-m-Y');
$col["formoptions"] = array("elmsuffix"=>'<font color=red> *</font>');
$cols[] = $col;
Thanks
1 Answers
Your Answer