Why is this pop up coming when i am selecting a field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2024 01:49 AM
Hi,
I am trying to select a field, and I am getting a pop up for no reason. Kindly help.
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}
var impact = g_form.getValue("u_impact");
var urgency = g_form.getValue("u_urgency");
if(urgency == "1" && impact == "1"){
g_form.setValue("u_priority", "1");
}
else if(urgency == "2" && impact == "1"){
g_form.setValue("u_priority", "2");
}
else if(urgency == "3" && impact == "1"){
g_form.setValue("u_priority", "3");
}
else if(urgency == "1" && impact == "2"){
g_form.setValue("u_priority", "2");
}
else if(urgency == "2" && impact == "2"){
g_form.setValue("u_priority", "3");
}
else if(urgency == "3" && impact == "2"){
g_form.setValue("u_priority", "4");
}
else if(urgency == "1" && impact == "3"){
g_form.setValue("u_priority", "3");
}
else if(urgency == "2" && impact == "3"){
g_form.setValue("u_priority", "4");
}
else if(urgency == "3" && impact == "3"){
g_form.setValue("u_priority", "5");
}
}
Regards
Suman P.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2024 01:55 AM - edited 04-13-2024 03:16 AM
Hi @Community Alums ,
There might be a client script running that uses the alert() function to display a popup message. Could you please share a screenshot of the entire client script? Additionally, please check if you've created any other client scripts that might use alert().
From screenshot I can see there are two Onchange Client script . Could you please check if in another onchange Client script you have used alert() or not ?
Thanks,
Astik