Field not required Set directly not required fields (updated in v 4.3)

By default, all fields are required fields, You can set fields not required using the fieldNotMandatory() function. Also, you can set all fields not required using the settings also

For Mysql database, fields with the default database values can be set whether they are required or not using the config["defaultValueFieldRequired"] = true; This will remove the required validation from the fields with default database value.

                            $pdocrud = new PDOCrud();
                            echo $pdocrud->dbTable("users")->render("insertform");

Field not mandatory using PDOCrud