- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2023 03:35 AM
Hi Community,
I would like to generate popup message or alert in incident form if reassignment count of ticket is 4. I have tried creating a business rule but with that i am not getting the required output/result, can someone help me finding solution.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2023 03:56 AM
Hi @Naresh_5120,
Try on submit client script to restrict submission of record
function onSubmit() {
//Type appropriate comment here, and begin script below
var reassign = g_form.getValue('reassignment_count');
alert(reassign);
if(reassign < 4){
return true;
}else{
alert('you have reached 4 atempt not longer to re assign the user');
return false;
}
}
If my response helps you to resolve the issue close the question by Accepting solution and hit thumb icon. From Correct answers others will get benefited in future.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2023 09:24 AM
Hello @Naresh_5120
You need to remove that
alert(reassign), which is just above of if statement
Plz Mark my Solution as Accept and Give me thumbs up, if you find it Helpful.
Regards,
Samaksh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2023 04:43 AM
Hi Samaksh,
Really appreciate your response, I have tried the script but it not working. Can I change the Type to OnLoad as I want alert to be generated if any incident has reassignment count is greater than 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2023 04:46 AM - edited 07-24-2023 04:47 AM
Hello @Naresh_5120
Sure use this Script :-
function onLoad(){
var count = g_form.getValue(reassignment_field);
if(count > 4){
alert("count is greater than 4");
}
return true;
}
Plz Mark my Solution as Accept and Give me thumbs up, if you find it Helpful.
Regards,
Samaksh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2023 12:48 AM
Hello @Naresh_5120
Plz Mark my Solution as Accept if you find it Helpful and close the thread. it will help future readers to reach the post.
Regards,
Samaksh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2023 04:34 AM
Hi @Naresh_5120,
remove the return false in else condition then you can achieve the requirement.
If my response helps you to resolve the issue close the question by Accepting solution and hit thumb icon. From Correct answers others will get benefited in future.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2023 09:10 AM
Hi Mohan,
Thank you so much! I have used your suggestion and its working now. However one last query, at initial pop up I get below , and when I click on ESC key then I get the pop message. How would i get the pop message in first load of incident?