- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2024 08:06 PM
I have customized fields on Incident form. I have added those fields on Incident view sow_new_record. Client Script and UI policy works on those field in Incident form, but it doesn't work on the view sow_new_record.
Incident default view is in scope Global , the view sow_new_record is in scope incidrnt management for service operations workspace. Is this the reason?
Second question:
I create a client script onChange:
Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2024 10:10 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2024 08:15 PM
Hi @Yanping Guo1 ,
UI policies work in workspaces. check if your UI policy applied to your workspace view
example
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0693345
If I could help you with your Query then, please hit the Thumb Icon and mark it as Correct !!
Thanks & Regards,
Sumanth Meda
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2024 05:47 AM
Hi @Yanping Guo1 ,
1. You may verify if you have selected UI type as all, Global = true(if false select correct view), and correct table and field value
2. I inspected the field obj and found that the field message is part of field obj, so when you change/clear the field value, it leads to clear message also, so this behavior is expected.
I guess you may leave the field value as it is and show field message to notify user for correction
Please mark it helpful, if it answers your query.
Thanks,
Haseeb Ahmed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2024 07:35 AM
Haseeb,
Thank you for reply.
1. It is perfect answer. Thank you!
2. If don't clear the value, we need to create an other client script to varify the format / value. Otherwise, the wrong value will be saved.
It works on platform, it has issue in workspace.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2024 07:39 AM
How do we get view name from client script?
getView() doesn't work.