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. 


0 REPLIES 0