I am working with SharePoint 2013 on prem and I have a custom list created where users store certain info relevant to their contracts. I have not implemented permissions for this list yet, but it will have unique permissions, like certain users will only have read and others will have contribute access through SharePoint groups.

There are also workflows attached to this list and at the end of workflow users who have access will attach a file to the given list item using the 'attach a file' OOTB option available in custom list so once attached, it will then show up under Attachments column (OOTB) and its visible on Dispform and editform.

So the requirement is to hide the attachments column (containing file attachments) from DispForm and Editform for the users (part of SP group) who shouldn't view the attachments.We are using SP groups (for example Finance members) for permissions assignment.

If this is doable, can someone help me with the JS code, thanks in advance.

1 Answer 1


I have no doubt that you can hide that column using js, but it will be security by obscurity. If you plan to change to SPO then the js hack is not supported on modern lists. An altertive approach could perhaps be to store the final in another library and link to it ?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.