To Preview the Attachment attached in incident Form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-07-2025 10:37 AM
I have been given a task that when an attachment is attached to any incident on clicking the attachment name it should be previewed not download we have to solve this using iframe ,i have attached the image below the attachment name is encircled by red circle marker kindly help me to code and develop it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-08-2025 12:04 AM
Install the document viewer plugin. That should take care of most attachments.
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-10-2025 08:22 AM
I didn't find this solution helpful,neither is it as per my constraints,kindly help me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-12-2025 02:52 AM
Explain the requirement? You are there to provide the best solution for a problem your client is having. Why does it need to be previewed instead of downloaded? And why doesn't the OOB solution of the document viewer plugin solve this? "We have to solve this using iframe" needs to be explained. Why does it have to be an iframe solution?
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-12-2025 03:06 AM
I agree with @Mark Manders here, why to use iframe or any external library and not use OOTB capability.
You can use "Document viewer" feature and this will allow your users to view the attachments.
Remember not all file types are supported there
check this doc link on the same
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader