How to make a custom field read only in detail view??
Thanks!!
How to make a custom field read only in detail view??
Thanks!!
Hi sugardeveloper11,
Do you want to make a field as readonly in 'Detail view'?
This is just example:
1) Copy the file (only if it does not exist) from modules\Accounts\clients\base\views\record\record.php to custom\modules\Accounts\clients\base\views\record\record.php
2) Find your field in this file (for example: [industry])
3) replace
'industry',
by
array( 'name' => 'industry', 'readonly' => true, ),
This is just example:
1) Copy the file (only if it does not exist) from modules\Accounts\clients\base\views\record\record.php to custom\modules\Accounts\clients\base\views\record\record.php
2) Find your field in this file (for example: [industry])
3) replace
'industry',
by
array( 'name' => 'industry', 'readonly' => true, ),
Hi Roman,
This will make the field readonly only in record view. But users will be able to edit the field from list view and sub-panel list view in this case.