- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-25-2019 11:06 PM
Hello,
I need to hide below form section (highlighted) based on major_incident_state value on the incident form.
I guess the code should be in a client script and llok something like this:
var sections = g_form.getSections();
g_form.setSectionDisplay('mi_email_template', false);
I am just wondering where to find "system name" of the form section "MI Email Template"...
Appreciate any advice on this,
Milan
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-25-2019 11:23 PM
Important information:
https://hi.service-now.com/kb_view.do?sysparm_article=KB0696583
Thanks
Abhishek Gardade

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-25-2019 11:13 PM
Hello Milan,
Check out below links-
https://www.servicenowguru.com/scripting/client-scripts-scripting/showhide-form-section/
Mark Correct if this solves your issue and also mark Helpful if you find my response worthy.
Thanks,
Ruhi.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-25-2019 11:19 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-25-2019 11:23 PM
Important information:
https://hi.service-now.com/kb_view.do?sysparm_article=KB0696583
Thanks
Abhishek Gardade

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-25-2019 11:20 PM
Hello,
You can just have a alert on in the client script "alert(g_form.getSections());" and here you will get all section names. Just copy the one you want and paste in your code. This is what I generally do 🙂
Thanks,
Ali
Thank you,
Ali