- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2025 06:35 PM
Hi,
I have a requirement to show a subcategory from an incident form depending on the role and group membership. This is working on SOW but not on native view, UI Type is on ALL. Can you please advise what needs to be done? Thank you.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2025 06:05 PM
This KB article helped me: https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1641021
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2025 06:59 PM
HI @Rairai31 ,
By UI Type it means whether it's for Desktop/mobile or ALL. YOur Worlspace UI and Native UI both falls under Desktop, so that just not decides whetehr it will work for both native or workspace or not.
What you need to check is, Set the "Isolate Script" field on the client script to "True".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2025 07:20 PM
Thank you very much @Community Alums for clarifying that.
Yes, Isolate Script is set to TRUE.
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2025 07:20 PM
it should work fine, script is ok
Did you add alert and see what came in alert for that scratchpad variable?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2025 07:33 PM
Hi @Ankur Bawiskar,
Thank you for the response. Yes, I have added alert too. Here is the snip on SOW.
Here is on the Native view:
**Alert was showing on the native view as well.
The Swap is not showing on the SOW but it is showing on the native view.
Thank you