Is there a way to only require a field when adding a new record and not on edit?
$col[“show”] = array(“list”=>false, “add”=>true, “edit”=>false, “view”=>true, “bulkedit”=>false);
$col[“editrules”] = array(“required”=>false);
$cols[] = $col;
1 Answers
Hello,
You can skip this editrules option and use form level data validation as in this demo.
https://www.gridphp.com/demo/demos/editing/js-validation-form.phps
Line 34,35 and 136
Your Answer