Attachment deletion

rss

Posted by gianni972 - Nov 28 ’16 at 07:25

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
    Member for: 5 years 3 months 24 days
    #1 by YuriyMedvedev Nov 28 ’16 at 09:31

    Hi! Try to use this code in CSS:

     

    [fd_name="Attachments"] .ms-propertysheet{ 
    	 display: none;
    }
  • gianni972
    Member
    Member for: 5 years 8 months 1 day
    #2 by gianni972 Nov 28 ’16 at 10:47

    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

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 8 years 3 months 29 days
    #3 by Dmitry Kozlov Nov 28 ’16 at 11:46

    [#2]: 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.

Displaying 1 to 3 of 3 messages