- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago - last edited 3 weeks ago
I add a new section tab to our Change Request form.
How to make that section to be visible to specific location only?
Condition:
Change Area is "Application"
Type is Normal
Requested for or Opened by location: T1, T2,T3
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
you will have to use UI policy for this with that condition
Then in Run Scripts Execute if True add this and do reverse in Execute if False
g_form.setSectionDisplay('system_security_analysis', true); // show section
Like this
If the logic is complex then you can use Display business rule and scratchpad + onLoad client script
Display BR: sets the scratchpad as true/false
onLoad client script: grabs the scratchpad value and shows/hides the section using the same above g_form method
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
I tried this, but it did not worked.
I modify it to and it worked.
g_form.setSectionDisplay("system_securityanalysis", true);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
you will have to use UI policy for this with that condition
Then in Run Scripts Execute if True add this and do reverse in Execute if False
g_form.setSectionDisplay('system_security_analysis', true); // show section
Like this
If the logic is complex then you can use Display business rule and scratchpad + onLoad client script
Display BR: sets the scratchpad as true/false
onLoad client script: grabs the scratchpad value and shows/hides the section using the same above g_form method
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Thank you for marking my response as helpful.
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
I tried this, but it did not worked.
I modify it to and it worked.
g_form.setSectionDisplay("system_securityanalysis", true);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
test