- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2024 07:37 AM
Hi All,
How to achieve this ?
Popup an alert and make work notes mandatory when reassignment count is greater than 3 on the incident form.
I have tried with ui policy but it is not properly working.
Please assist.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2024 10:46 PM
Hi @Dr Atul G- LNG ,
It is working as expected now. I have created an after update business rule with the below conditions.
1) Reassignment Count greater than 3
2) Reassignment Count Changes
3) Assignment Group Changes
4) !current.work_notes.changes()
And added a message in actions tab.
Thanks & Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2024 07:43 AM - edited 01-15-2024 07:45 AM
Hi @Joshuu ,
You can use onChange or onSubmit client script with the code as given below
{
alert("count is 3");
g_form.setMandatory('work_notes',true);
}
Please mark my response helpful if it resolves your issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2024 07:51 AM
Hi @Joshuu
I checked this, It is making work notes mandatory but after saving the record.. in this case you may need to change the Save UI action to add this.
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
01-15-2024 09:12 AM
HI @Dr Atul G- LNG ,
I am about to post this, what needs to be updated in the save UI action? also i have a condition where the reassignment count is more than 3.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2024 09:17 AM
You need to update in Save UI action which run on Incident table, so that it make Worknotes mandatory before save.
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]
****************************************************************************************************************