Hide a field when editing

$crud = new grocery_CRUD();
...
$crud->edit_fields('equip_status_id', 'site_id', 'equip_type_id', 'name', 'barcode_no');

if ($crud->getState() == 'edit') {

     ->field_type('volume', 'disabled')
     ->field_type('tipe', 'hidden');
}

source

Leave a Comment

Your email address will not be published. Required fields are marked *