How to insert Knowledge Article link in Catalog item

anchal
Kilo Contributor

Hi All,

I have to add Knowledge Article link under Catalog Item. 

Please suggest, how can i achieve.

Thanks in advance!

Regards

Anchal

1 ACCEPTED SOLUTION

Glad it worked.

if i answered you , kindly mark the answer correct and close this thread..

View solution in original post

10 REPLIES 10

Kalaiarasan Pus
Giga Sage

Can you briefly describe what do you mean by this? Can you show some screenshot on what you are after?

anchal
Kilo Contributor

Hi,

Thanks for your quick response!

My requirement is when we open a particular catalog item then knowledge article link got attached.

Example: Item is Apple iPad3  and knowledge article was created. So when i created RITM for Apple iPad3 then knowledge article link got attached and user can read that article.

On my end, i created knowledge Article field with URL data type and write client script on onLoad. Please find below script:-

Client Script

Type: OnLoad

if(g_form.getValue('cat_item') == 'Apple iPad 3') {


g_form.setValue('u_knowledge_article','https://dev55604.service-now.com/nav_to.do?uri=kb_knowledge.do?sys_id=e97ee81eff6002009b20ffffffffffe0');
}

 

Please suggest.

find_real_file.png

I would advise you against creating a new field for showing a knowledge article. Instead of it, you can use one of the out of box table such as m2m_kb_task to relate knowledge article to the request and show it on the form. You can try adding the related list 'Attached Knowledge' on the form and see if that is something you would want to use instead.

anchal
Kilo Contributor

Hi Kalai,

Thanks for your quick response!

Can you please suggest me, knowledge article should automatically attached for particular item while loading the page.

Regards

Anchal