
Announcements
Good day experts!
Asking for your help please if how can I set the OnRemove function to add a new attachment if the user has to replace the existing uploaded file. Note that my attachment is set to max:1. Thank you in advance!
if I click the 'x' button:
hi @scorpio24 ,
From my test I think this is only possible for new form, please check my below test:
I created collection to collect all the attachments attached in attachment control and the items property of this control is this collection.
This will help to update the collection according to end user's action, add or move or undoremove. And we are sharing the same remove way in the trash icon, which is working fine to remove the same item inside the attachment control at the same time.
However, this logic won't work for the edit item, as the edit item has its own Items value already, which will cause conflict with this specific logic and the same formula will not work. Please feel free to have a try.
my formula: ClearCollect(attachmentts,DataCardValue7.Attachments)