How to change the insert link of the kb article

chandan1994
Tera Contributor

How to change the order insert link open link in.., (options)- None(use implicit). I want same frame (_self ) to be 1st

chandan1994_0-1697192963811.png

 

6 REPLIES 6

Samaksh Wani
Giga Sage
Giga Sage

Hello @chandan1994 

 

You have make the changes in the script of UI page which you have attached in the screenshot.

 

In that way you can change the sequence of options via code.

 

Plz mark my solution as Accept, If you find it helpful.

 

Regards,

Samaksh

As it is a OOB , can you advise which UI page. I changes below no luck.
below is the UI page

Note -this dialog window is in knowledge
html_insert_link_dialog | UI Page | ServiceNow (service-now.com)

chandan1994_0-1697195457984.png

 

Hello @chandan1994 

 

Modify your line  54 to 57 with mine.

 

 

<g2:ui_select_option text="${gs.getMessage('Same frame (_self)')}" value="_self" selected="$[jvar_selected_target]" />
<g2:ui_select_option text="${gs.getMessage('None (use implicit)')}" value="" selected="$[jvar_selected_target]" /><g2:ui_select_option text="${gs.getMessage('New window (_blank)')}" value="_blank" selected="$[jvar_selected_target]" />
<g2:ui_select_option text="${gs.getMessage('Top frame (_top)')}" value="_top" selected="$[jvar_selected_target]" />

 

 

Plz mark my solution as Accept, If you find it helpful.

 

Regards,

Samaksh

I did but strange its not changing as per script.

chandan1994_1-1697200419031.png

 

chandan1994_0-1697200386087.png