readOnlyEditFields
readOnlyEditFields(array $fields)
There are cases, that we need some fields to be read only but only to the edit form modal. In that case we can use the “Read Only Edit Fields” method like this:
$crud->readOnlyEditFields(['reference_id', 'email']);
In the above case the reference_id
and the email
field will be shown but the user will not be able to change the default value.