Choice field value getting cleared out on workspace after saving the form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-08-2025 05:18 AM
Hello all,
I am facing an issue on custom workspaces if I try to update incidents on them.
So, as per our existing logic, whenever someone changes CI field on incident, it will set values for Category, Service, Service offering and subcategory will becomes mandatory to select values from dropdown.
(Subcategory is dependent on Service offering names).
If i select any subcategory and save the form it works fine in native view.
But if I change CI on workspace for an incident, select subcategory and save the form, form will get saved (updating in server as well) but subcategory again becomes mandatory with no values to select.
I've checked all UI policies and client scripts around subcategory, but none of them is causing this issue.
if it would have caused, then in native view as well same issue could have been seen.
Can you please help me in debugging this issue?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-08-2025 05:24 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-08-2025 05:29 AM
Hi @Community Alums ,
Yes, I checked ACLs around this choice field on incident, even me as an admin facing same issue on workspace only
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-08-2025 05:30 AM
any client script is running only on workspace view which is clearing?
Also subcategory choice is dependent on category choice
how are you making it dependent on Service offering?
share the relevant scripts along with their screenshots.
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
‎04-08-2025 05:42 AM
Hi @Ankur Bawiskar ,
We have used Service offering name as dependent field for subcategory.
Below are client scripts that runs on incident-
1. When we change the value of the Configuration Item field, below client script runs which sets values for Service, service offering and Category