- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2025 11:12 AM
- I’m working on a requirement where the Description field should be mandatory for Standard Change Requests, but only when the State is 'New' and the view is SOW.
- I tried implementing this using a UI Policy, but it didn’t work in the SOW view. I then attempted it using a client Script, and it works fine in the Default view, but not in SOW.
- The field is present in the SOW form layout, so I’m not sure why the mandatory condition isn’t being applied.
If anyone has faced a similar issue or could kindly guide me on how to achieve this, I’d really appreciate your help.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2025 02:26 AM - edited 07-16-2025 02:27 AM
Hi @lakshmi9 ,
Please check and confirm if you have selected for a specific view
because it will work.
Mark it helpful if this helps you to understand. Accept solution if this give you the answer
Chandan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2025 03:09 AM
Hi @lakshmi9 ,
it is directly coming from template that's why is is not appearing mandatory.
Chandan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2025 03:54 AM
Hi @lakshmi9
There are two possible reasons: First, there might be another script running on the same field that is overriding the mandatory setting. Second, it could be a bug. Also, please check if there are 2-3 views in the SOW and whether you added the correct view in the script.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2025 12:23 AM
I also checked the Details tab, and it is showing the same behavior — the field is not mandatory.
I have created a UI Policy with the following conditions:
State is New
Type is Standard
In the UI Policy Actions, I’ve set the Description field to be mandatory. It's not working so i have created on load script then it's showing mandatory in default view but not sow view.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2025 11:48 AM
Hi @lakshmi9 ,
Use a UI Policy scoped to the SOW view, with conditions: type is standard change and state is new
In the UI Policy Actions, set Description as mandatory
Hope this works
Chandan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2025 12:26 AM
Hi @SD_Chandan
I have tried that method also. showing same behavior.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2025 02:26 AM - edited 07-16-2025 02:27 AM
Hi @lakshmi9 ,
Please check and confirm if you have selected for a specific view
because it will work.
Mark it helpful if this helps you to understand. Accept solution if this give you the answer
Chandan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2025 02:56 AM
Hi @SD_Chandan
- I’m trying to make the Description field mandatory only for Standard Change requests when in the "New" state, specifically in the Standard Operating Workspace (SOW).
- I’ve already implemented the logic, and it's working fine for Normal and Emergency change types in SOW. However, for Standard Change, the field is not showing as mandatory in the same view/state.
Also, could you please let me know if it's working for Standard Change in SOW on your instance?