- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2021 10:34 AM
Looking to clear a field on the Incident form with an onChange client script. I want this done for Agent Workspace -- how do I do create one such that it executes in Workspace?
Note: I've got a UI Policy set up that works for the platform and Agent Workspace. However the "clear value" field ONLY works in the platform and not in workspace (not sure why).
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2021 07:32 AM
Hi,
you can specify the view for your client script as -> workspace
then write your code which would run only for the workspace view
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2021 10:49 AM
Hi Amy,
Create a normal client script as you do for the platform,
Use g_form.clearValue('<field_name>');//to clear value
Make sure the UI Type for the client script is set to All.
Thanks,
Aman

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2021 07:18 AM
Hi Amy,
Thanks for marking my response as helpful.
Let me know if I have answered your question.
If so, please mark appropriate response as correct & helpful so that this thread can be closed and others can be benefited by this.
Thanks,
Aman
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2021 07:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2021 12:01 PM