Attachment deletion
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"
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"
-
- Moderator
- Posts: 33
- Joined: Wed Sep 21, 2016
Hi! Try to use this code in CSS:
Code: Select all
[fd_name="Attachments"] .ms-propertysheet{
display: none;
}
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
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
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
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.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 3 guests