Why is this pop up coming when i am selecting a field

Community Alums
Not applicable

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");
	}


}

 

p1.pngp.png

 

p2.png

 

Regards

Suman P.

1 REPLY 1

Astik Thombare
Tera Sage

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