GlideAjax - changes priority
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2023 06:16 AM
Hi, I would like to know why the code doesn't work for me? What I need to do is as soon as I open an incident and put in the caller a client who is a VIP, then the priority automatically changes to 1. This is important as soon as I open before I save , But this is the only way I need - GlideAjax I am attaching pictures of what I did but it doesn't work
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2023 06:27 AM
Hi @yardenKrispel ,
Can u try changing ur client script after 22 line with this
ga.getXMLAnswer(fetchResponse);
function fetchResponse(answer) {
alert(answer);
if(answer == 'true'){
g_form.setValue('urgency',1);// please use proper backend names
g_form.setValue('impact',1);
g_form.setValue('priority',1);
}
}
Thanks,
Danish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2023 06:32 AM
its not work i happy to help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2023 06:42 AM
Hi @yardenKrispel ,
Please comment from line 14 -20 & then try. It should work. Also please let me know what alert u got.
Thanks,
Danish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2023 06:46 AM
still not work