- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2023 08:13 AM - edited 08-07-2023 09:21 AM
hi all,
how to hide "Awaiting Caller" for the following condition
incident with contact type "Event Monitoring", state On-Hold, contact type !==event Monitoring, category !== Event_Management and there should be no possibility to add
on the onhold reason "awaiting caller", except for incident tickets with contact type "event Monitoring",
category "Event_Management".
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2023 11:33 PM
Hi Harish Kota,
thanks for your reply..
i got solution using ui policy conditions with run script- g_form.removeOption('hold_reason','1');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2023 11:24 AM
create new client script onload , as below
if (g_form.get('Category') != "Event Management" && g_form.get('Caller') != "Event Monitoring" && g_form.get('State') == 3 )
{
g_form.removeOption('hold_reason','1');
}
else {
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2023 02:47 AM
Hi abhijit,
Thanks for your reply.
I tried the following client script but not working as expected
var contacttype = g_form.getValue('u_contacttype');
var category = g_form.getValue('category');
var state = g_form.getValue('state');
if(contacttype == 'Event Monitoring' && state == '3' && category != 'Event_Management')
g_form.removeOption('hold_reason','1');
else {
if(contacttype == 'Event Monitoring' && state == '3' && category == 'Event_Management')
g_form.addOption('hold_reason','1');
}
suggest code changes to work properly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2023 03:26 AM
Use UI Policy for this solution.
Create conditions Contact Type is Event Monitoring and state On-Hold
under UI Policy Action - make awaiting caller is false.
Thanks,
Harish Kota
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2023 11:33 PM
Hi Harish Kota,
thanks for your reply..
i got solution using ui policy conditions with run script- g_form.removeOption('hold_reason','1');