How to Make certain Fields as Display only on a Record Layout?
How to Make certain Fields as Display only on a Record Layout?
Hi,
You can do this with SugarCRM dependencies. Follow this link for help. In actions you can use 'ReadOnly' instead of 'SetRequired'
Thanks
Hi Tarun,
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.
If you want them to be readonly only in record view (no inline edit) then edit
custom/modules/<the_ module>/clients/base/views/record/record.php
and set readonly => true
E.g.
array (
'name' => 'the_field_name',
'readonly' => 'true',
),
HTH,
FrancescaS
Tarun,
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.
Kind Regards,
Lori Arce
Thank you very much for your quick reply on this. This works like charm.
Thank you
Lori,
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.
Thank you
Tarun.
Thank you
RT Labs
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
Tarun.
Thank you
Fahadnaseer,
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.
Thank you
Tarun.