How-To Create hyperlink on the bullet point to jump on a section in a knowledge article

Yogesh Kumar5
Kilo Contributor

Hi,

Could you please let me know how to create a hyperlink on bullet points to jump on certain sections in a knowledge article?

Please check the attached screenshot

find_real_file.png

We know the KBA KB0529465  which described the target of the hyperlink but we do not know how to achieve the above-mentioned objective. 

Please help.

find_real_file.png

7 REPLIES 7

Kris Sherer
Kilo Expert

I do these jumps in the html code. This is an example of a jump ref for "Account setup":

<a title="Account setup" href="#setup">Account setup</a>

Then, in the body of the article where you want to jump to, you use this code: 

<a name="setup"></a>Account setup

I picked the word "setup" as the jump reference so when it finds that word it jumps there.

This is what the link display box looks like:

find_real_file.png

And this is what it looks like when you've set up the jump ref correctly:

find_real_file.png

Gregg Grose
Kilo Guru

The purple Android needs an anchor or an ID that the link can reference. Place your cursor in the purple Android and use the Anchor button to create an anchor with the name of "A1". Using the Anchor button will yield code such as: <a id="A1"></a>

You could also go within the code and create an ID attribute within the list item of the purple Android. This will yield code such as: <li id="A1">Android</li>.

 

To link to the top, highlight Top and click the Insert/edit link button to create a link to "#" or "#top". You do not need to create an anchor for this because a browser will recognize this as topmost location in the window object. 

 

Further information:

Hi Gregg,

Thanks for your response.

In ServiceNow KBA creation editor does not have an anchor. I am not sure how to add this. 

find_real_file.png

JulietChicago
Tera Guru

HI,

I attached the steps we use to achieve this.

It is similar to the what others have posted.

 

Question where are you testing the anchor (Agent Workspace, KB homepage, portal etc? and what version are you on?

 

Thanks

Julie