Hi all,
I have trawled through a few threads on the community about this, some marked as solved even though I don't believe they are.
https://powerusers.microsoft.com/t5/Building-Power-Apps/Powerapps-Cannot-Clear-Attachments/td-p/155771
https://powerusers.microsoft.com/t5/Building-Power-Apps/Cannot-Clear-Attachments-in-PowerApps/td-p/185762
Are two examples.
I have the below screen. There is a gallery (gallery3) at the top which houses some information about an item from a SharePoint List. This is for information purposes only. The default & items property is simply: gallery2.selected (this is on a previous screen. Once selected, user is navigated to the screen I have attached).
I want to add and remove the attachment to/from this item. I know I need a form to do that, because attachments are very difficult to use outside forms. So I have and editform called Form2 (Item property: Gallery2.Selected) with Attachments_DataCard1 inside it (default property: ThisItem.Attachments). And inside that is DataCardValue99 (Items property: Parent.Default).
I have tried every combination of item properties and default properties and nothing I do seems to work. Everytime I click the attach/delete letter button, the attachment that has been added or removed does get added or removed to/from my sharepoint list, but then it never disappears or stays visible in my attachment control. I have tried resetting the form, I have tried resetting the attachment control, nothing works. It is like the attachment control is not updating when a change has been made to the form/SharePoint list.
If I navigate away from this screen and then click on the gallery2 item again the correct information is displayed in the attachment control.

Any help would be much appreciated. It seems lots of people are having this issue and I cannot find a resolution anywhere.
Thanks,
Freddie