Form new section visibility
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago - last edited 2 hours 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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour 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
