cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SPB21
Level: Power Up

Attachment Control - Prevent deletion of a specific file

Hi,

 

I need to prevent the deletion of a specific attachment from the attachment control.  I'm currently setting the 'OnRemoveFile' action to:

Reset(<Control name>);

Notify("You cannont delete atatchment files").

 

This prevents ALL files from being deleted but i need to limit it to a specified attachment.

 

Thanks

2 REPLIES 2
Administrator
Administrator

Re: Attachment Control - Prevent deletion of a specific file

Thanks for posting in the community @SPB21 . Take a look at the following thread and let me know if it answers your question: 

 

https://powerusers.microsoft.com/t5/General-Discussion/Add-Remove-attachments-Edit-Form-View-Form/td...

 

@TopShelf-MSFT 

lavint
Level: Powered On

Re: Attachment Control - Prevent deletion of a specific file

when you reset control, doesn't it clear all the attachments and return the field to the original no attachment state?