ArtiGrid
v1.6

Form Field Required

The required(true) method enables global validation for all form fields.

When activated, all inputs in the form will be required by default, ensuring that users must complete every field before submitting.

This is useful for quickly enforcing full validation without defining rules for each field individually.


<?php
    $grid = new ArtiGrid();
    $grid->table('payments')
        ->template('bootstrap5')
        ->required(true)
        ->modal();
    echo $grid->render();
?>
paymentId customerNumber checkNumber paymentDate amount Actions