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 / Do not reset the texti...
Power Apps
Unanswered

Do not reset the textinput of a gallery

(1) ShareShare
ReportReport
Posted on by 691
Hello !! I created a Power Apps screen and on it I display a gallery connected to a SharePoint list. For each item in my list, I have a "Save" icon that allows me to save each change made to each line. However, when I modify my textinputs of different lines (without saving) and then I save a line, everything that I had entered in the textinputs of the other lines is reset. How to prevent this reset?
Thanks in advance !!
 
Categories:
I have the same question (0)
  • Amol-Kavnekar Profile Picture
    123 on at
    The problem you are having may be due to how Power Apps handles the context and position of the controls in the gallery. Interacting with a control in a platform can update the entire platform, thus returning inputs from other rows.
    To prevent this, you can use a combination of local variables or collections to temporarily store user inputs. This way, the inputs will not be lost when the gallery is updated.
    There is a step-by-step approach to this.
    1. Use archive to store temporary data:
      • Create collections to temporarily store input values.
      • ClearCollect(TempData, MyList)
        
        LookUp(TempData, ID = ThisItem.ID).Title
        

    2. Update the collection as the filler changes:
      • Use the OnChange property of each input control to update the collection whenever the input value changes.
      • UpdateIf(
            TempData,
            ID = ThisItem.ID,
            { Title: TextInput1.Text }
        )
        

    3. Add the collection to a SharePoint list:
      • Use the OnSelect property of the Save icon to patch data from a collection into a SharePoint list.
      • Patch(
            MyList,
            LookUp(MyList, ID = ThisItem.ID),
            LookUp(TempData, ID = ThisItem.ID)
        );
        Notify("Item saved successfully", NotificationType.Success)
        

  • Hii_iii Profile Picture
    691 on at
    @Amol-Kavnekar i tried what you told me but values ​​don't save in SharePoint
  • Hii_iii Profile Picture
    691 on at
     
    @Amol-Kavnekar i tried what you told me but values ​​don't save in SharePoint
     

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 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard