cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

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
Highlighted
Anonymous
Not applicable

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...

 

@Anonymous 

Highlighted
Helper I
Helper I

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

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,358)