custom Field not hiding in agent workspace but hiding in backened view of workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2023 08:47 PM
Hello ,
Their is one custom Mandatory field created as (u_subcategory) and i have applied a onLoad Client Script to be hidden for a specific condition , And i have checked in backend view of workspace it's hiding ,but if i am opening the same in agent workspace and checking it, it's showing the field.
@Ankur Bawiskar @Chuck Tomasi If you could help please..
Agent Workspace--(Still visible on agent workspace)
Workspace View from native--(Hiding it from here)
Client Script--
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2023 05:51 AM
if you want to show and make it mandatory then why not use the view name in client script directly -> uncheck global check box and type the view name
OR
you can also use UI policy and select the view name
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
05-23-2023 06:17 AM
Hi @Ankur Bawiskar ,
I have used that too, but that didn't work for me so then i try to use getview() method and validate it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2023 07:48 PM
can you share that client script or UI policy which you created?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2023 11:42 PM
@Ankur Bawiskar the below script is working fine in workspace view from backened/native but not working in Agent workspace.
And have even checked by commenting the getview and also verified from unchecking it from global and providing workspace view .But then also it's not able to hide the field.
Your response is highly appraisable !!