Skip to main content
Community site session details

Community site session details

Session Id : R7o0SwS2ZwGIQqPtAEI24Q
Power Apps - Building Power Apps
Unanswered

PowerApps List Form Attachments Are Not Resetting & Retain An Old Document.

Like (0) ShareShare
ReportReport
Posted on 29 Apr 2022 11:32:49 by 74

Hi All,

 

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

Categories:
  • Community Power Platform Member Profile Picture
    on 11 Oct 2022 at 18:20:52
    Re: PowerApps List Form Attachments Are Not Resetting & Retain An Old Document.

    Had similar problem. By default when you customize a Sharepoint List form the Item field populates with: 

     

    If(IsBlank(SharePointIntegration.Selected) || IsEmpty(SharePointIntegration.Selected),First([@'Request Manager']),SharePointIntegration.Selected).

     

    I think the last part is the issue since the default form gets used for View and Edit operations in the Sharepoint list, it defaults to showing the first item in the list when nothing else is indicated. I was building a form purely for record intake so didn't care about record management. I deleted the string above and all seems to be working.

     

    As a precaution I also removed any form operations from the Sharepoint integration OnEdit and OnView fields to disable those functions. That maybe not necessary but I'm no expert at this.

  • venka91 Profile Picture
    1,118 on 30 Apr 2022 at 11:43:11
    Re: PowerApps List Form Attachments Are Not Resetting & Retain An Old Document.

    For Edit Form and View Form, Check which record id it is pointing to ?

    As new Form shows the Attachment control empty, your edit form and view form may be pointing to incorrect record from the list. Please check.

     

     

  • ChiranJay Profile Picture
    74 on 30 Apr 2022 at 09:45:59
    Re: PowerApps List Form Attachments Are Not Resetting & Retain An Old Document.

    Is anybody there to assist me to resolve this?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete