How to hide attachment from service portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-16-2021 04:54 AM
How can we hide attachment inside the service portal. What script need to be added to server side of widget editor to hide attachment?
Please help
- Labels:
-
Multiple Versions
-
Service Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-16-2021 08:17 AM
I tried the script you have given before, it doesn't make any changes in attachment file when i open in the portal i am still seeing the attachment file over there
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-16-2021 08:29 AM
https://www.youtube.com/watch?v=xeh8-OA8UMc
Please go through the video. This will solve it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-16-2021 08:37 AM
I didn't need to remove add attachment i need to remove the file which i upload in add attachment after submitting the form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-16-2021 08:51 AM
There is an Script Include named AttachmentAjax that can be called from a Client Script using GlideAjax to perform several attachment related tasks like: list, delete, rename, etc.
GlideSysAttachment can be used to delete attachment as follows:
var attachment = new GlideSysAttachment();
var agr = attachment.getAllAttachments(<table_name>, <table sys id>);
while(agr.next()) {
attachment.deleteAttachment(agr.getValue("sys_id"));
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-19-2021 01:19 AM
These script will disable all attachment right. We need only specific attachment to be removed