web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Power Apps Integration...
Power Apps
Unanswered

Power Apps Integration form retains previous value in Edit Form

(0) ShareShare
ReportReport
Posted on by 6
I have customized a SharePoint list form through the Power Apps Integration.  The issue is when the user opens the form in Edit mode for an item and cancel or save, then attempt to edit another item by opening the Edit Form, the previous item info displays in the dropdown value field.  I have updated the SharePoint Integration OnEdit Property to this:
Refresh(pia1);
ResetForm(SharePointForm1);
EditForm(SharePointForm1)
 
The form does not reset.  This is only happening in the dropdown datacardvalue.  The SharePoint List field is a text field and the dropdown was set in PowerApps Integration with Data Type of Allow Values. Can someone assist in this issue?
Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,034 Most Valuable Professional on at
    There are some "shortcomings" in a SharePoint Integrated Form when changing records as neither App OnStart or Screen OnVisible run unless the user refreshes their browser in SharePoint between each record as the Form is hidden, not closed (for performance reasons). The only variable that changes is SharePointIntegration.Selected (which reflects the record chosen)
    You mentioned a drop-down being incorrect - what is the Items of this and also the Default (if a drop-down) or DefaultSelectedItems (if a combo box).
  • WellsMeghanWong Profile Picture
    6 on at
    @WarrenBelz​​​​​​​ The items property for the datacardvalue is ["","Yes","No"].  It is defaulting to either Yes or No.  The field in SharePoint list is a text field.  It's not a combo or choice box.  I have added this in Power Apps when added the text field and changed the Data Type field to Allow Values.  This converted the field to be a dropdown.
  • WarrenBelz Profile Picture
    153,034 Most Valuable Professional on at
    I was referring to the control that displays and writes the value back to your text field - if it is a drop-down, the Default would be (using your field name)
    ThisItem.YourTextFieldName
    If it is a Combo Box, then the DefaultSelectedItems would be
    {Value: ThisItem.YourTextFieldName}
    and the Update of the DataCard would be (using your control name)
    DataCardValuexx.Selected.Value
    Also is this a Modern or Classic control  and what is the Item of the Form ?
  • Suggested answer
    WellsMeghanWong Profile Picture
    6 on at
    @WarrenBelz All of the properties you sent looks fine and the same per your image.  I have found out that when you update the SharePoint text field to a data type of Allow Values as dropdown with Items property set with values to have it defaulted to blank (ie. ["","Yes","No"], I had to set the AllowEmptyValues to true.  This worked. 

    Regarding this statement on the App OnStart run, is there a way to enforce the browser to refresh at the users end?
    "App OnStart or Screen OnVisible run unless the user refreshes their browser in SharePoint between each record as the Form is hidden, not closed (for performance reasons)."

    Thank you for your cooperation.
  • Verified answer
    WarrenBelz Profile Picture
    153,034 Most Valuable Professional on at
    No unfortunately. You can sometimes have success by putting the required actions OnEdit / OnView, but I have found this inconsistent.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard