readOnlyCloneFields
readOnlyCloneFields(array $fields)
There are cases, that we need some fields to be read only but only to the clone form modal. In that case we can use the “Read Only Clone Fields” method like this:
$crud->readOnlyCloneFields(['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.