getreference

SANNAPUREDDYV
Tera Contributor

if Caller - Manager and Assigned TO - Manager both are same,then alert message.?
"Both Caller and Assigned To Manager are same"

6 REPLIES 6

function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}

var callermanager = g_form.getReference("u_manager", callback);

function callback(callermanager) {
g_form.setValue("u_manager", callermanager.manager);
}
var assignedto = g_form.getReference("assigned_to", setback);

function setback(assignedto) {
g_form.setValue("assigned_to", assignedto.assignedto);
}
if (callermanager == assignedto) {
alert("Both Caller and Assigned To Manager are same");
}
}

thanks,

venkatesh

Amit Verma
Kilo Patron
Kilo Patron

Hi @SANNAPUREDDYV 

 

Configure a Display Business rule as shown below :

AmitVerma_0-1726461024084.png

 

AmitVerma_1-1726461065987.png

 

Output :

AmitVerma_2-1726461095161.png

 

Thanks and Regards

Amit Verma


Please mark this response as correct and helpful if it assisted you with your question.