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.

Adding link button widget in portal employee center pro

poornima batchu
Tera Expert

Hi All, 

I'm configuring the esc pro portal page, In the bottom i added a Link button widget. I wanted to open this link in a new tab but after clicking on that old portal view buttonn it is opening in the same tab. Is there a way how to open this link in new tab..?

thank you

 

 

find_real_file.png

1 ACCEPTED SOLUTION

Mohith Devatte
Tera Sage
Tera Sage

Hello @poornima batchu ,

if you have used an OOB widget you need to clone your widget and make a copy of it and update the HTML code to below .You need to add this target="_blank" attribute .

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

find_real_file.png

After this go to your page and replace your cloned widget in the instance holding the widget.

Just like i went to my page and highlighted go to your ESC home page in backend and find the instance which is holding your widget and replace your cloned widget 

PATH:

Portals-->Employee Center-->Open Record--> open the record tagged in home page field and find the instance and replace cloned widget

find_real_file.png

 

View solution in original post

5 REPLIES 5

Mohith Devatte
Tera Sage
Tera Sage

Hello @poornima batchu ,

if you have used an OOB widget you need to clone your widget and make a copy of it and update the HTML code to below .You need to add this target="_blank" attribute .

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

find_real_file.png

After this go to your page and replace your cloned widget in the instance holding the widget.

Just like i went to my page and highlighted go to your ESC home page in backend and find the instance which is holding your widget and replace your cloned widget 

PATH:

Portals-->Employee Center-->Open Record--> open the record tagged in home page field and find the instance and replace cloned widget

find_real_file.png