I am having an issue on Powerapps where I can attach a file and complete a form using the SubmitForm. I have tried multiple ways to reset the Attachment control including NewForm, ResetForm, Reset and nothing has worked. I made a simple form and added a Reset button. If I manually click the "X" the file disappears, but I do not want user intervention. If I click ResetForm, a "ghost" item of the file pops back up.
Solved! Go to Solution.
Please check and see if the following thread would help in your scenario:
When you navigate from other screen to the Edit screen (contains the Edit form), please take a try to set the OnSelect property of the "Navigate" button to following formula:
Note: The Editform1 represents the Edit form within your Edit screen.
I'm having the same issue that David had, but your solution isn't working for me. I'm trying to do almost the exact same thing. I have a form with an attachment control included. When I run the app, enter data, add an attachment, and click the Reset button, the attachment actually changes to an older attachment from a previous attempt. What the what?! If I click on the X icon for the attachment, it clears fine, but not when I use the button. The function I'm trying to accomplish is for the user to clear out any information they've put in the form so they can start fresh.
Here's what I have on my OnSelect property (Form1 is the form with the attachment control):
Was a solution found for this?
I have a similar situation where a user can submit a form with an attachment, then after submission they can choose to submit another. I have used both resetform and new form and both will reset all other fields but any attachments do not reset.
Don't think so. And since this issue is marked as 'Solved' I have created a new topic:
I used an attachment control outside of a form (copied it out of a temporary form) and I was able to clear it after submission by using Reset(Name of Attachment Control)
Check out new user group experience and if you are a leader please create your group
Please join us on Wednesday, July 21st at 8a PDT. We will be announcing the Winners of the Demo Extravaganza!
Participate in the Power Virtual Agents Community Challenge
Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.