How to make the List View's preview icon popup details of an Incident fields Read only

Research
Tera Guru

Hi team,

How to make the List View's preview icon popup details of an Incident fields read only for ITIL role/Service desk agents

Research_0-1739898217759.png

 


Thanks

 

1 REPLY 1

priyatam_pvp
Tera Guru

Since the preview panel in List View uses the form layout, we need to make fields read-only based on user roles.

create an Onload client script on the incident table :

if (g_user.hasRole('itil')) {

    g_form.setReadOnly('short_description', true);

    g_form.setReadOnly('description', true);

    g_form.setReadOnly('assignment_group', true);

}