ArtiGrid
Fields Validations
ArtiGrid allows you to define required fields using the validation_required() method.
This lets you control which fields must be filled in the form, while keeping global
required validation disabled using required(false).
It provides more granular control over validations by applying rules only to specific fields.
<?php
$grid = new ArtiGrid();
$grid->table('employees')
->template('bootstrap5')
->unset('filter', false)
->required(false)
->validation_required([
'lastName',
'firstName',
'extension'
])
->modal();
echo $grid->render();
?>