form-fields
Show specific fields in the CRUD form
You can control which fields are displayed in the CRUD form by specifying them in an array using the formFields method. This allows you to show only the fields you want users to edit or view, making the form cleaner and more focused.
<?php
$grid = new ArtiGrid();
$grid->table('payments')
->formFields(['customerNumber','checkNumber','paymentDate', 'amount']) // show certain fields in the form
->modal();
echo $grid->render();
?>