- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-05-2019 05:25 PM
Hi All,
I have a requirement to create a Client Script to hide 2 tabs within the incident view when a certain assignment group is selected.
The client script should run onLoad and achieve the following outcome:
When assignment group VC Office is selected, the Related Records & Resolution Information tabs should be hidden.
Is anybody able to help me achieve this? Im hoping and imagining its pretty simple.
Thanks in advance
Ed
Solved! Go to Solution.
- Labels:
-
Cost Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-05-2019 05:52 PM
You can write below script
if(g_form.getValue('assignment_group')== 'SYS_ID_OF_assignemnt group')
g_form.setSectionDisplay('related_records',false);
g_form.setSectionDisplay('resolution_information',false);

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-05-2019 05:48 PM
Take a look at the out of box client script - PIR visibility - on the incident communication plans table. It shows/hide related lists based conditions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-05-2019 05:52 PM
You can write below script
if(g_form.getValue('assignment_group')== 'SYS_ID_OF_assignemnt group')
g_form.setSectionDisplay('related_records',false);
g_form.setSectionDisplay('resolution_information',false);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-05-2019 06:11 PM
Hi @Harshtimes, that's done it! Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-05-2019 06:27 PM
Great!Please mark it answered .
-harsh