redirect URL

Shabbir1
Tera Contributor

HI Team,

 

I have created a Ui action button i need to redirect to the URL if user clicks on the UI action button. Can anyone help me in the script i have used below script but it is not working sharing screen shot for reference

 

Shabbir1_0-1719205277255.pngShabbir1_1-1719205292989.png

 

1 ACCEPTED SOLUTION

sunilsargam
Tera Guru

Hello @Shabbir1 ,

 

You can use below script. 

action.setRedirectURL('testURL.com');

View solution in original post

6 REPLIES 6

sunilsargam
Tera Guru

Hello @Shabbir1 ,

 

You can use below script. 

action.setRedirectURL('testURL.com');

Hi Sunil,

 

Thank you for your quick response its working but it is opening in same tab is there any way to redirect to the URL in new tab?

 

 

Hi @Shabbir1 ,

 

To open in new page you can do something as below,

swathisarang98_0-1719207504463.png

 

function openUrl() {
    var url = 'add your url ';
    window.open(url, '_blank');
}

 

Please mark this comment as Correct Answer/Helpful if it helped you.

Regards,

Swathi Sarang

Murthy Ch
Giga Sage

Hello @Shabbir1 

If you want to open in new tab you can use below methods:

top.window.open("your URL"); 

OR

g_navigation.openPopup("your URL");

Hope it helps:)

Thanks,
Murthy