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?

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 114 members 4,181 guests
Please welcome our newest community members: