Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Open HTML type Attachments from a Knowledge Article in a new tab, instead of downloading it directly

MahakG710834763
Tera Contributor

Hello forum,
We have a requirement to open HTML type Attachments from a Knowledge Article in a new tab, instead of downloading it directly. We tried a few things but it didn't worked. Also referred to the below article, it works for pdf's and ppt's but not for html files:


https://www.servicenow.com/community/hrsd-articles/open-attachments-on-knowledge-articles-in-a-new-t...

 

We also tried with the UI Page and client Script combination (Attached are the script files for reference) as per the suggestion from ChatGPT, that also did not worked with some fine tunings as well. 


1 REPLY 1

Max Dore
ServiceNow Employee

Can you share your Knowledge Article Body code?