Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Issue in redirect th link in the portal page

chandanpatra
Tera Contributor

HI All, 

when i will put only one  bangalore location it is redirect the correctly in the portal page

example :

if(sysId == "3423f73997b4561007a1b73de053af66") { //Hardcoded Bangalore location
alert("selected Bangalore location");
setLink2(sysId);
setUrl2(sysId);
} else {
alert("selected another location");
setLink(sysId);
setUrl(sysId);
}
if(sysId == "3423f73997b4561007a1b73de053af66") { //Hardcoded Bangalore location
        setLink2(sysId);
} else {
setLink(sysId);
}
function setLink2(id) {
//alert(queueLink + '2&location_id=' + id);
c.queueLink = '?id=walkup_queue_on_site_2&location_id=' + id;
c.checkInLink = '?id=walkup_check_in_raj&location_id=' + id;
c.surveyLink = '?id=walkup_survey_2&location_id=' + id;
}
 
above script is working correctly for the one location when i will another location with OR condition "0b83c4e89701121007a1b73de053af34" for america location it is not working , can you give me the correct code it is going to another location in the alert message.
 
Thanks and Regards,
Chandan 
 
@Sid_Takali : can you help me 
1 REPLY 1

Mr_X
Mega Guru

Hi @chandanpatra ,

 

can you please help me with the below functions.

setLink(sysId);
setUrl(sysId);