- 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:58 PM
One correction, the correct function is g_form.getSectionNames();
so use alert(g_form.getSectionNames());
Thanks,
Ali
Thank you,
Ali

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-25-2019 11:30 PM
Hi Milan,
The section name is lower case with an underscore replacing the first space in the name, and with the remaining spaces being removed.
For example:
"Section Four is Here" becomes "section_fourishere".
you can check yours with : "mi_emailtemplate"
Kindly mark correct or helpful if it helps you to solve your problem.
Thank You,
Ashvini k