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?
Solved! Go to Solution.
Hi @MarcoQ96
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:
Collect(context1,{context1:"context1"})
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.
Best regards,
Community Support Team _ Phoebe Liu
Hi @MarcoQ96
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:
Collect(context1,{context1:"context1"})
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.
Best regards,
Community Support Team _ Phoebe Liu
Hello,
Why do we need "context1" at the end?
Collect(context1,{context1:"context1"})
Submit form is to save the whole item to the list OR just save the attachment?
If(IsEmpty(context1),SubmitForm(Form1),Notify("you can't delete files",Error));Clear(context1)
User | Count |
---|---|
136 | |
135 | |
78 | |
72 | |
69 |
User | Count |
---|---|
223 | |
136 | |
78 | |
60 | |
54 |