How to Make certain Fields as Display only on a Record Layout?
If you want them to be readonly only in record view (no inline edit) then edit
and set readonly => true
'name' => 'the_field_name',
'readonly' => 'true',
You can do this with SugarCRM dependencies. Follow this link for help. In actions you can use 'ReadOnly' instead of 'SetRequired'
For your quick reply on this, this is nice to know that we can do this via Dependencies, i will try to use this somewhere else. But right now i was able to resolve this issue by using Francesca's suggestion.
Please go to 'Studio' in the 'Admin' panel. In 'Studio' click on your desired module (e.g. Contacts, Accounts, Leads etc).
Then click on Layouts. There you will see the 'Record View' icon. If you click on it you will get the option to display or hide anything from the record view of that particular module by simply dragging and dropping Panels and Rows.
Hope this answers your question.
For your quick reply on this, but i want this field to be used as editable on the other forms. So i needed to be read only in Record View only. So implemented as Francesca has suggested and it worked the way i wanted it.
Thank you very much for your quick reply on this. This works like charm.
Since you are on Sugar 7, you should be able to accomplish this via Role Management. Go to Admin > Role Management and create a role. Once you create a role, click on the module name on the left side to view the fields that belong to that module. You should be able to set any field listed as Read Only.
Once the role is created, you can add users to the role to restrict access.
For your quick reply on this, bu i want this field to be used as editable on the other forms. So i needed to be read only in Record View only. So implemented as Francesca has suggested and it worked the way i wanted it.
Retrieving data ...