Cireson Portal - Hide Tabs Dependent on Incident Support Group
Dear All,
Is there a way to hide the tabs on incident form dependent on what support group the incident is assigned to?
Kind Regards
Daniel
Best Answer
-
Justin_Workman Cireson Support Super IT Monkey ✭✭✭✭✭
@CaterhamITSupport - Daniel, I have attached some javascript that will allow you to supply a list of tabs to hide; and support groups to hide them for. You can either load this in with loadScript(which I recommend), or drop the entire contents straight into custom.js.
Bear in mind you can also just create a custom form based on group membership the way this article mentions but it won't update the form in real time like the above code will.
5
Answers
@CaterhamITSupport - Daniel, I have attached some javascript that will allow you to supply a list of tabs to hide; and support groups to hide them for. You can either load this in with loadScript(which I recommend), or drop the entire contents straight into custom.js.
Bear in mind you can also just create a custom form based on group membership the way this article mentions but it won't update the form in real time like the above code will.
That worked really well.
Thank you for the help with this.
Kind Regards
Daniel
Justin,
What would I need to change in your script to hide tabs on a Change Request form?
@Daniel_Clark - On line 2, change Incident to ChangeRequest. On line 4, change fieldToWatch to SupportGroup. And change tabsToHide and SupportGroupsToHideFor as necessary.
Justin,
I made the changes you suggested, but the script is not hiding the emergency tab. I can confirm the script is loading by using the console in Chrome.
Justin,
Do you recommend using the other method since the script does not work on change requests?