How to change the insert link of the kb article
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2023 03:32 AM
How to change the order insert link open link in.., (options)- None(use implicit). I want same frame (_self ) to be 1st
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2023 03:36 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2023 04:11 AM
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)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2023 04:31 AM - edited 10-13-2023 04:31 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2023 05:33 AM
I did but strange its not changing as per script.