- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
In a ServiceNow custom scoped application, I’m trying to hide empty variables from the Variable Editor. I followed a community thread (Hide empty variables on RITM and TASK record) and was able to successfully implement this for global tables. However, it does not work for custom tables in a scoped application.
I created a custom Business Rule and Client Script within the scoped application, but I’m encountering the following error:
"Display false not set on field variables.XXXX: cross-scope access denied."
From my understanding, setDisplay() is restricted due to cross-scope access in scoped applications.
Has anyone successfully implemented a way to hide empty variables in the Variable Editor for scoped/custom tables? If so, could you please share the approach or best practice to achieve this?
Any help would be greatly appreciated. Thanks in advance!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hi @TejaSatyaA
You need to use the g_sc_form api.Please refer to this documentation.
Hope that helps!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
Hi @TejaSatyaA , setVisible() will work in scoped applications, but leaves layout gaps.
Please try it and see if it is suitable for you.
If this response was helpful, please consider marking it as Correct and Helpful. You may mark more than one reply as an accepted solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
Hi Huynh,
Thanks for the suggestion but SetVisible() is not feasible for our scenario.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hi @TejaSatyaA
You need to use the g_sc_form api.Please refer to this documentation.
Hope that helps!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Thank you @PradeepReddyA , using 'g_sc_form' worked.
