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

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

 

@Anonymous 

Highlighted
Helper I
Helper I

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
Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

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,691)