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.

Unable to add kb link with hint tool tip both at the same time.

1_DipikaD
Kilo Sage

Hi 

If you see in the image I have 2 hint for one field in a table. When I link a kb article to this field the tooltip message disappears for the left one.

So how can I fix this ? Please suggest.

 

Thank you

4 REPLIES 4

Martin Friedel
Mega Sage

Hello,

 

I suppose you adding icon to the left side of field label with a client script and code like this?

g_form.addDecoration("justification", "icon-help", "Some text");


Could you a client script definition, when it runs, what is the script?

 

Martin

I also find a lot on client script but did not find any script for this field.

I think it's triggering from a UI Page but not sure.

With this I can show a help message on icon but how can I put kb article link in that field ?

Its not possible, it is just a decoration that accepts string.
You can do similar as I suggested you in this article: How to add a attachment next to a field in a form ? 

 

Create a new onLoad Client Script or add similar logic to the existing one.

Change onclick function and icon to icon-book:

 

<a onclick="window.open('https://google.com', '_blank')" title="Show knowledge article" class="icon ref-button icon-book btn btn-default"></a>

 


Martin