The CreatorCon Call for Content is officially open! Get started here.

Service Portal - Icon link that opens a new window

shill
Mega Sage

I am looking for a way to create a custom Icon Link widget to direct the user to a URL, but to open that URL in a new window instead of the portal page.

I've made a copy of the baseline Icon Link widget, but am unsure as to how I might change the behavior for the URL link.

1 ACCEPTED SOLUTION

markb2
Mega Expert

Hi Steven,



You may have resolved this yourself by now but the OTB (Helsinki Patch 7, not sure about previous versions) "Icon Link" widget accepts an option called "target" where you can specify how you want the link to behave. Locate your widget instance in the widget instances list and then add an additional option for target. E.g.



{


  "target": {


    "value":"_blank"


  },


  "link_template": {


  "value": "Circle Icon",


  "displayValue": "Circle Icon"


  }


}



additional_options.png



Thanks,



Mark


View solution in original post

6 REPLIES 6

devi_putra
Kilo Guru

Hi Steven,



Use window.open() method to acheive this..


Please check this link as well:


Window open() Method



Hope this will help you.



Thanks,


Devi



PS: Hit like, Helpful or Correct depending on the impact of the response.


markb2
Mega Expert

Hi Steven,



You may have resolved this yourself by now but the OTB (Helsinki Patch 7, not sure about previous versions) "Icon Link" widget accepts an option called "target" where you can specify how you want the link to behave. Locate your widget instance in the widget instances list and then add an additional option for target. E.g.



{


  "target": {


    "value":"_blank"


  },


  "link_template": {


  "value": "Circle Icon",


  "displayValue": "Circle Icon"


  }


}



additional_options.png



Thanks,



Mark