UI policy / client script not applying on fields
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2025 05:51 PM
Hi All,
We got into an issue where we are unable to apply onload ui policy to a record and verifed all conditions but still it is not applying.
Checked all client scripts but there is nothing thats overriding the ui policies.
Verified through client script that page is loading and responding
Kindly help me how to debug which ui policy/ other config is being applied on the record.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2025 07:46 PM
hello @klavan32 ,
If you are using any variable sets inside the form, check if client scripts and ui policies exist inside it..
and If possible send your screenshot of what you are unable to process..
====================================================================================
If my response got helpful to solve problem then give me Thumsup and Mark it as Correct Answer.
Thanks & Regards,
Aditya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2025 08:09 PM
Hi @Aditya02
I have checked variable set related client scripts and ui policies, nothing is related to them and i can see mandatory logic is applied to same fields and i am not able to find out which config is applied, checked all ui policies and client scripts, dictionary overrides
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2025 08:01 PM
what debugging did you perform from your side?
did you try to move the logic to onLoad client script instead of onload ui policy?
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-22-2025 08:08 PM
Hi @Ankur Bawiskar yes. i have tried to create a new onload client script and try to make fields read only but it is still not working, checked dictionary overrides as well and don't see it impacting