GlideAjax - changes priority

yardenKrispel
Tera Contributor

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 

yardenKrispel_0-1700489727002.png

 

yardenKrispel_1-1700489748631.png

 

12 REPLIES 12

Danish Bhairag2
Tera Sage
Tera Sage

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

 

its not work i happy to help 

yardenKrispel_0-1700490729536.pngyardenKrispel_1-1700490744634.png

 

Hi @yardenKrispel ,

 

Please comment from line 14 -20 & then try. It should work. Also please let me know what alert u got.

 

Thanks,

Danish

 

still not work 

yardenKrispel_0-1700491592336.png