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

Can you share your script here ?

screenshot of your client script and the form where your attachments are still showing 

See attachments

Can you verify the table name once ? I saw client script is on u_project table.

It should be pm_project if they are OOB projects.

If it's not the table issue then try adding below code and try :

 

function onLoad() {


gel('header_attachment').style.display='none'; // hide the existing attachments.

}