Hello. What can i do in order to show a column field in the grid but not in the add form?. I use de viewable property but it doesn´t work. Here´s part of my code:
…
// Indico propiedades de la columna "es_tarea_predefinida".
$col = array();
$col["name"] = "es_tarea_predefinida";
$col["edittype"] = "checkbox";
$col["editoptions"] = array("value"=>"Si:No");
$col["viewable"] = false; // I suppose that the respective columm it is not shown in the grid but it does.
$cols[] = $col;
…
Thanks.
2 Answers
Hide it on grid list, and display it on Add or Edit forms.
$col["hidden"] = true;
$col["editrules"] = array("edithidden"=>true);
If only want to display on add not edit,
$col["show"]["list"] = false;
$col["show"]["edit"] = false;
$col["show"]["add"] = true;
Your Answer