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;
You can skip this editrules option and use form level data validation as in this demo.
Line 34,35 and 136
Abu Ghufran - Dev Team
Grid 4 PHP Framework
We are sorry that this post was not useful for you!
Let us improve this post!
Tell us how we can improve this post?