Attachment deletion

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
gianni972
Posts: 7
Joined: Wed May 18, 2016

28 Nov 2016

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"

YuriyMedvedev
Moderator
Posts: 33
Joined: Wed Sep 21, 2016

28 Nov 2016

Hi! Try to use this code in CSS:

Code: Select all

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

gianni972
Posts: 7
Joined: Wed May 18, 2016

28 Nov 2016

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

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

28 Nov 2016

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.

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests