Add 'Print Article' to Actions feature on knowledge article on Service Portal

cynlink1
Tera Expert

Hello,

 

I am trying to refill the following requirement:

 

  • Add new option named 'Print Article' under the Actions feature on the kb article in the Service Portal.

Is this possible? If yes, please let me know the best way to achieve it, ideally with step by step instructions.

 

Thanks,

Cyn

 

cynlink1_0-1709670587548.png

 

1 ACCEPTED SOLUTION

@cynlink1  I am using the exact same script on my personal instance and there is no syntax error on it.  Adding xml of my widget try to import it in your instance. 

 

If you are doing in on personal instance, I can quickly check it , please let me know. 

 

Note: Just for information => is a fat arrow function symbol and if you replace with == operator it will definitely not going to work . 

 

Let me know if you have any further question for me. 

 

Thanks,

Harsh

 

View solution in original post

22 REPLIES 22

I imported your XML, and it worked perfectly. I made a mistake along the way. However, it was odd that everything worked fine until I updated the print function. I tried my best to identify the syntax error last night but did not see anything obvious (based on my limited experience).

 

Thank you so much for being patient while working with me and ultimately providing me with a solution that meets the requirements. I couldn't have done it without you! Thanks again!

 

cynlink1_0-1710516634075.png

 

Hi Harsh,

 

I compared the code from the working XML version to the code snippet provided in this post and found that the XML version included .transparent-button in line 19. I think that was the difference. Thanks again for everything!

 

Version provided in the post

cynlink1_1-1710518112841.png

 

Version in the XML version provided

cynlink1_0-1710518075708.png

 

How may I include attachment of the article as well.