Notifications

43 views

Description


Modify the Knowledge Article Link that is populated when we click on Attach button from Contextual Search Results

Procedure


1. The Knowledge Article Link is populated from the Script include cxs_knowledge which is read-only and cannot be edited.

2. However, we can still modify the link by creating an onChange Client Script on the comments field which is populated with the Knowledge Article link when we click the “Attach” button from the contextual search results.

3. Here is an Example client script on Comments fields for overriding the link to view in Portal:

function onChange(control, oldValue, newValue, isLoading, isTemplate) {

  if (isLoading || newValue === '') {

  return;

  }

  if(newValue.includes('kb_view')){

     g_form.setValue('comments', newValue.replace('kb_view.do?sys_kb_id', 'sp?id=kb_article&sys_id'));

     }

  } 

Applicable Versions


Any 

Article Information

Last Updated:2018-11-15 07:10:36
Published:2018-11-15