I have a field that has a pull down value.
See below.
When a person edits this entry I only want this field to display in the edit window if the current value of this field Dose not equal "Processing"
Could someone help please.
$col = array();
$col["title"] = "Status";
$col["name"] = "Status";
$col["width"] = "5";
$col["editable"] = true;
$col["edittype"] = "select";
$col["editoptions"] = array("value"=>'Pending:Pending;Accepted:Accepted;Rejected:Rejected');
$col["hidden"] = false;
$col["align"] = "left";
$col["show"] = array("list"=>false,"edit"=>true,"add"=>false);
$cols1[] = $col;
You can use event:
$opt["edit_options"]["afterShowForm"] = 'function () { …. }';
$g->set_options($opt);
In this function, you can check value of status using jquery $('#status').val() … and when hiding condition met, you can hide whole tr with id tr_status
$('#tr_status').hide();
You can inspect using firebug (f12) debugger to check element ids iinside edit dialog.