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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Changing an existing r...
Power Apps
Unanswered

Changing an existing row/data from a new form

(0) ShareShare
ReportReport
Posted on by 9

Hi, 

My data source consists of two columns, "Date" and "FoodName".
If I want to Edit existing information then I go to my BrowseGallery and then -> select a specific row -> and then edit it - easy. 


But what if I am not coming from BrowseGallery and have not selected a specific row? What I want is a Form where I can fill in FoodName and then select a Date (and row ID if necessary) and then it replaces existing data.

 

Sincerely,

Kudy

Categories:
I have the same question (0)
  • BCBuizer Profile Picture
    22,577 Super User 2026 Season 1 on at

    Hi @Kudratilla,

     

    A possibility that comes to mind uses a variable:

     

    In the OnChange property of the field where the user can type the FoodName, set the following formula:

    With({
     _Item: LookUp(
     DataSourceName,
     FoodName = Self.Text
     )},
     If(
     IsBlank(_Item),
     NewForm(FormName);
     Set(
     varEditRecord,
     Blank()
     ),
     EditForm(FormName);
     Set(
     varEditRecord,
     _Item
     )
     )
    )

     

    Then set the Item property of the form to varEditRecord.

     

    Since this will break the reference to the gallery, you'll need to insert the below in the OnSelect property of (a control in?) your gallery to make things work again:

    EditForm(FormName);
    Set(
     varEditRecord,
     ThisItem
    );

     

    You should be careful with this though, because any typo will create a new record and pollute your data.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 529 Most Valuable Professional

#2
Haque Profile Picture

Haque 230

#3
Kalathiya Profile Picture

Kalathiya 217 Super User 2026 Season 1

Last 30 days Overall leaderboard