- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2018 03:31 AM
Hi, Would like to ask for some help with script that will show the Form Section (Privacy) once the UI Action (Privacy Incident) is clicked?
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2018 06:21 AM
I'm able to resolve using this line from this thread
https://community.servicenow.com/community?id=community_question&sys_id=1609cfa1db5cdbc01dcaf3231f96198f&view_source=searchResult
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2018 03:41 AM
Hi,
You need to select the client checkbox on your UI action and then add this script.
g_form.setSectionDisplay('privacy', true);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2018 03:47 AM
You should also hide this section when form is loaded. So add this script in an OnLoad client script.
g_form.setSectionDisplay('privacy', false);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-08-2018 03:51 AM
Hello,
Have you tried it out?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2018 06:40 AM
Hi, I already tried it but we want it go directly to the exact form section when UI action is clicked. Any inputs?