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

Community Alums
Not applicable

Hi @poornima batchu ,

You will have to do exactly this way to meet your requirement : https://community.servicenow.com/community?id=community_question&sys_id=afa00765db98dbc01dcaf3231f96...

Mark my answer correct & Helpful, if Applicable.

Thanks,

Sandeep

Community Alums
Not applicable

Hi @poornima batchu ,

Any update to this ?Any follow-up required? if not

Kindly mark the answer as Correct & Helpful both such that others can get help.

Thanks,
Sandeep

Harish KM
Kilo Patron
Kilo Patron

Hi in your HTML widget you need to add target=_blank to open in new tab example below

 <a href="url" target = "_blank">Click Here</a>

Regards
Harish

SumanthDosapati
Mega Sage
Mega Sage

Hi,

You can clone the widget and edit the widget html.

This link might help you.

 

Mark as correct and helpful if it solved your query.

Regards,
Sumanth