
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2024 12:31 PM
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
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2024 06:16 AM
@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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2024 08:38 AM
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!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2024 08:59 AM
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
Version in the XML version provided
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2024 08:47 AM
How may I include attachment of the article as well.