'PowerApps Form Created By Customizing The SharePoint Online List Attachments Are not Clearing

I have created a PowerApps form by customizing a SharePoint Online List. In that list I have several fields including an attachment control.

To submit the filled form, I use a Submit button.

When I submit the form, every form control get reset except the attachment control and it retains a document that doesn't exist anymore in the list. I investigated this and identified that this document is showing in the edit form and in the view form as well. But in the first new form it's not showing.

I have created a message box named 'mypopup'.

I have tried the below property changes in the Submit Button.

Submit Button

OnSelect - SubmitForm(SharePointForm1); ResetForm(SharePointForm1); Navigate('New Form')

SharePointForm1

OnSuccess - NewForm(SharePointForm1); Set(mypopup, true); Navigate('New Form')

Please can someone help me to resolve this?

Thanks



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source