Page 1 of 1

Attachment deletion

Posted: 28 Nov 2016
by gianni972
Hello,

I have a list processed by a workflow. Some users are adding comment and attachment during the process.

When I add multiple attachment, everything is still working.

My problem is that normally, people should not be able to delete attachment. When I put on the edit mode the option read only, then the app is supposed to do what i want. Unfortunately, when i do that, its impossible for me to add any other new attachment.

Is there an easy way to avoid attachment deletion ? or is it possible to add attachment even if the field attachment is in "read only"

Re: Attachment deletion

Posted: 28 Nov 2016
by YuriyMedvedev
Hi! Try to use this code in CSS:

Code: Select all

[fd_name="Attachments"] .ms-propertysheet{ 
	 display: none;
}

Re: Attachment deletion

Posted: 28 Nov 2016
by gianni972
Hello,

Thanks a lot was working. But its meaning that i have to also disable show toolbar. Is it possible to hide easily just the delete item or to add a "add attchament". If there is a post on that, would be nice to provide it to me.

Thanks for the support

Gianni

Re: Attachment deletion

Posted: 28 Nov 2016
by Dmitry Kozlov
The code above hides the 'Delete' links. Why do you need to disable toolbar? Users will use it to add new attachments. As I understood, you need to allow them adding new attachments and deny removing existing ones.