Service Portal - how to make link-button widgets open in new browser window?

James Rostron1
Tera Expert

Hi Community,

I'm struggling to find a way to make external sites open in a new browser window where we have used a link-button widget. I have tried using HTML code target="_blank" but cannot get this working.

find_real_file.png

Does anybody know how to get this to open in a new window?

Thanks,

James

1 ACCEPTED SOLUTION

Go to widget editor and select the widget and update the HTML Template

find_real_file.png

View solution in original post

5 REPLIES 5

VigneshMC
Mega Sage

If you want open it same tab, then just add the url with https://

, if you want to open in new tab, then clone the widget and update the html code to 

<a target="_blank" ng-href="{{options.href}}" class="btn btn-{{options.color}} m-b">{{data.buttonMsg}}</a>

Thanks

Thanks Vignesh,

I have already cloned them but where would i update the html code?

Thanks,

James

Hi James Rostron,

You have to update the HTML code in widget editor, which you have to clone.

Ex :- https://<YOUR INSTANCE NAME>.service-now.com/sp_config?id=widget_editor

Let me know if you have any questions.

Please mark it Correct or Helpful, if it works based on impact....!!!!

Warm Regards,

Priyanka

 find_real_file.png

www.dxsherpa.com

Go to widget editor and select the widget and update the HTML Template

find_real_file.png