Restrict Tab/Section on Incident Form

kevinthury
Tera Guru

We have created a Section on the Incident form called 'Record Owner Info'.   This section contains six custom fields.   Is there a way to restrict the visibility of this tab to just our Service Desk?   We have 'read' ACLs to hide the six fields, but would like to go a step further and hide the whole tab if possible.

find_real_file.png

1 ACCEPTED SOLUTION
9 REPLIES 9

bernyalvarado
Mega Sage

Thanks Berny.   I looked at this and the how to hide related list tab in incident form?? link guided me to getting this done.  


Brian Lancaster
Tera Sage

This should work.   You may have to add some extra code so it only hides if the user is not a member of Service Desk group.


Re: Hide Tab/Section in client script


Prateek kumar
Mega Sage

Hello Kevin


This can be achieved using Onload client script. Try something like below



function onLoad(){


if(g_gorm.getValue('assignment_group')! = 'Service Desk'){


var sections = g_form.getSections();


sections(4).style.display = 'none';


}


}



Please mark my response as correct and helpful if it helped solved your question.
-Thanks