How to hide attachment from service portal

Joyal Robert
Tera Contributor

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

18 REPLIES 18

Harshit Jamwal1
Mega Guru
Hi Joyal, Where exactly on the Portal you want to hide it.

Check this Harshit

 

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';

}

it is not working, still i am able to see attachment

when i open record from portal, it shows javascript error as toggle message