How to delete attach file in Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2024 06:37 AM - edited 01-11-2024 06:44 AM
In "Create New" form, I need to delete an attached file when the user changes an option. Is there any solution to my issue, and thank you for your assistance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2024 06:42 AM
Hi,
You can delete it using the x as highlighted below
Also, I would advise you that when you add a screenshot on this community please refrain from showing client name or any other confidential data.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2024 06:46 AM
Hi @Anurag Tripathi ,
I want it auto deleted when user change option. Can I use client script to handle it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2024 06:47 AM
My bad, I read the question wrong,
Check this thread where Chuck has answered similar question.
Solved: Re: Deleting Attachments from a Catalog Item - ServiceNow Community
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-11-2024 06:59 AM
Hi @Anurag Tripathi
In my case, this ticket has not been submitted yet and is currently present on the Portal view. I have tried manually deleting the attached file from the "sys_attachment" table, but it seems that even after successful deletion, the UI on the Portal is not being updated.