Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

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

(0) ShareShare
ReportReport
Posted on by 72

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 at
    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,116 on at
    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
    72 on at
    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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,660 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard