how to generate popup message or alert in incident form if reassignment count of ticket is 4

Naresh_5120
Tera Contributor

Hi Community,

 

I would like to generate popup message or alert in incident form if reassignment count of ticket is 4. I have tried creating a business rule but with that i am not getting the required output/result, can someone help me finding solution.

 

2 ACCEPTED SOLUTIONS

Mohan raj
Mega Sage

Hi @Naresh_5120,

Try on submit client script to restrict submission of record

function onSubmit() {
   //Type appropriate comment here, and begin script below
	var reassign = g_form.getValue('reassignment_count');
	alert(reassign);
	if(reassign < 4){
		return true;
	}else{
		alert('you have reached 4 atempt not longer to re assign the user');
		return false;
	}
   
}

 

If my response helps you to resolve the issue close the question by Accepting solution and hit thumb icon. From Correct answers others will get benefited in future.

View solution in original post

Hello @Naresh_5120 

 

You need to remove that

alert(reassign), which is just above of if statement

 

Plz Mark my Solution as Accept and Give me thumbs up, if you find it Helpful.

 

Regards,

Samaksh

View solution in original post

17 REPLIES 17

Samaksh Wani
Giga Sage
Giga Sage

Hello @Naresh_5120 

 

you need to create onChange() Client Script.

 

 

var count = g_form.getValue(reassignment_field);

if(count ==4){
alert("your message");
}

 

 

Plz Mark my Solution as Accept and Give me thumbs up, if you find it Helpful.

 

Regards,

Samaksh

Mohan raj
Mega Sage

Hi @Naresh_5120,

Try on submit client script to restrict submission of record

function onSubmit() {
   //Type appropriate comment here, and begin script below
	var reassign = g_form.getValue('reassignment_count');
	alert(reassign);
	if(reassign < 4){
		return true;
	}else{
		alert('you have reached 4 atempt not longer to re assign the user');
		return false;
	}
   
}

 

If my response helps you to resolve the issue close the question by Accepting solution and hit thumb icon. From Correct answers others will get benefited in future.

Hi Mohan,

 

Thank you for quick help! I don't want to restrict but just want to display alert pop up in any incident which has reassignment count greater than 4

Hello @Naresh_5120 

 

You can better use onCHange client Script :-

 

 

var count = g_form.getValue(reassignment_field);

if(count > 4){
alert("your message");
}

 

 

 

Plz Mark my Solution as Accept and Give me thumbs up, if you find it Helpful.

 

Regards,

Samaksh