The Zurich release has arrived! Interested in new features and functionalities? Click here for more

How do I hide attachments at the top of a form?

Randy at DT
Kilo Contributor

We have a form that users will likely add several (up to 10) attachments. I've added the Attachments related list to the form and don't want to also clutter the form with multiple attachments. I'm NOT talking about the attachment paperclip icon, but the attachments themselves.  thx

1 ACCEPTED SOLUTION

On your client script, you need to set Isolate script field to false. This field is not found on form layout, you will need to add it. Once this field is unchecked, your script will work and this is a new change since London.

View solution in original post

16 REPLIES 16

SaiRaviKiran Ak
Giga Guru

I found that and tried it and it did NOT work for me.  My onLoad client script per the article:

 

function onLoad() {

    document.getElementById('header_attachment').style.display = 'none';

    document.getElementById('header_attachment_line').style.display = 'none';

}

 

Did I do something wrong?

Its working fine for me.

Make sure you have to create OnLoad script on your required table only.

Yes, the Client script is set for the table I'm using.  I'm working in London...could it be that something's different there?