Is there any way to have users be able to upload files through an attachments control, but not be able to delete any previously attached files?
Go to Solution.
Do you want your users being able to attach new files but not being able to delete previously attached files?
If you want to disable the "delete files" function directly, there is currently no such feature.
I made a similar test as follows，you can try this:
Create an edit form with Attachments control.
Set the Attachments control’s OnRemoveFile:
Set the Button’s OnSelect:
If(IsEmpty(context1),SubmitForm(Form1),Notify("you can't delete files",Error));Clear(context1)
After these settings, users will not be able to delete previously attached files.
Community Support Team _ Phoebe Liu
View solution in original post
Why do we need "context1" at the end?
Submit form is to save the whole item to the list OR just save the attachment?
Fill out a quick form to claim your user group badge now!
Find out where you can attend!
Features releasing from October 2019 through March 2020
The largest Power BI, Power Platform, and Data conference in New Zealand