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.

Click on link button needs to open page in new tab on the service portal

Raviteja K
Tera Expert

Hello All

I have an link button on service portal, when I click on link button it is opening in the same window but it need to be opened in the new tab.

On the same page we have link which when clicked opens in a new tab.

Any pointers how to fix this issue to open in a new tab.

Thanks in advance

8 REPLIES 8

I was going through some Stackoverflow articles.

 

I guess target works only for href tag, which explains why it works for a lnk on your page but not for a button.

 

for button try following and see f it gives any better results.

 

formtarget="_blank"

 

Thanks

harshad

 

I tried with the all 

"target": {
"value": "_blank"

"displayValue":"_blank"

}

 

still not working page is opening in the same window

oh..this should have worked.

no any other Idea's I have, sorry:(

 

Thanks

Harshad

Can we write anything in this widget

<div>
<!--<button data-toggle="collapse" data-target="#chat-iframe" class="btn btn-primary">Chat</button>-->
<div class="panel panel-group panel-{{::c.options.color}} b">
<div class="panel-heading">
<h4 class="panel-title">
<span ng-if="c.options.glyph"><fa name="{{::c.options.glyph}}" /></span>
<!-- <a data-toggle="collapse" class="a collapsed" href="#collapse{{data.instance_id}}">
{{::c.options.title}}
</a>-->
<button type="button" data-toggle="collapse" data-target="#collapse{{data.instance_id}}" class="btn btn-link btn-xs collapsed">
{{::c.options.title}}
</button>
</h4>
</div>
<div class="panel-body">
<!--<div id="chat-iframe" class="collapse collapsed">-->
<div id="collapse{{data.instance_id}}" class="collapse collapsed">
<iframe src="https://xxxxxxxxx" height="500px" width="400px" target="_blank"></iframe>
</div>
</div>
</div>
</div>