I have a requirement to show popup and redirect to different URLs(2 URLs in two different tabs). I am able to redirect to one page. How can we redirect to 2 URLs ? Any help here ?

sravya vemula
Tera Contributor

if ( g_form.getDisplayBox('business_application').value ==  'Phoenix - General'){
        alert('You will be redirected to "OneAccess" to request access to this application. \n\n IMPORTANT: Before Phoenix can be used, the Prime application must be installed from the App Shop.');
    top.window.open("https://isimserver.fpl.com/itim/ui/Login.jsp");
    top.window.open("https://neesnprod.servicenow.com/espid=sc_cat_item&sys_id=9da9b155872b8150324f0fa6cebb35bd");
        g_form.clearValue('business_application');
}

1 ACCEPTED SOLUTION

Murthy Ch
Giga Sage

hi @sravya vemula 

I think there is no change required in your script because you just need to allow the Pop-ups and redirects in your browser.

Let me know if you need more help,

 

Thanks,

Murthy

Thanks,
Murthy

View solution in original post

4 REPLIES 4

AnubhavRitolia
Mega Sage
Mega Sage

Hi Sravya,

try 'top.window.location' and see if it works.

Please mark this as correct answer if it resolved, or mark this helpful if this help you to reach towards solution.

 

Please mark this as correct answer and helpful if it resolved, or mark this helpful if this help you to reach towards solution.

Thanks
Anubhav Ritolia
ServiceNow Rising Star 2023

Hi Anubhav,

Thanks for your response.

Tried the above suggestion,  but no result.

In the below two links, only first one is getting redirected and opening in a new tab. But second link is not being redirected.

top.window.open("https://isimserver.fpl.com/itim/ui/Login.jsp");
top.window.open("https://neesnprod.servicenow.com/espid=sc_cat_item&sys_id=9da9b155872b8150324f0fa6cebb35bd");

Murthy Ch
Giga Sage

hi @sravya vemula 

I think there is no change required in your script because you just need to allow the Pop-ups and redirects in your browser.

Let me know if you need more help,

 

Thanks,

Murthy

Thanks,
Murthy

Hi Murthy,

Thanks for your response.

Pop-ups and redirects are allowed in my browser.

In the below two links, only first one is getting redirected and opening in a new tab. But second link is not being redirected.

top.window.open("https://isimserver.fpl.com/itim/ui/Login.jsp");
top.window.open("https://neesnprod.servicenow.com/espid=sc_cat_item&sys_id=9da9b155872b8150324f0fa6cebb35bd");