- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2022 11:58 PM
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2022 12:15 AM
Hello
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>
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2022 12:04 AM
Hi
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2022 05:16 AM
Hi
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2022 12:05 AM
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>
Harish

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2022 12:07 AM
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