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 04:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-16-2021 05:25 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-16-2021 05:43 AM
1) Create catalog client script which applies only on Desktop
2) Ensure Isolate Script field is set to false. This field is not on form but from list you can make it false
Sample script below
function onLoad(){
document.getElementById('sc_attachment_button').style.display = 'none';
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-16-2021 06:18 AM
it is not working, still i am able to see attachment
when i open record from portal, it shows javascript error as toggle message