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 / My add button doesn't ...
Power Apps
Answered

My add button doesn't work after the first record insert. It at the first insert it behaves like the update icon.

(0) ShareShare
ReportReport
Posted on by 171

I have a screen with a vertical gallery that looks like this. 

 

Fuzzy1_0-1678982275805.png

 

The on select code for the “add new record” button looks like this. 

               Navigate(Add_Screen,ScreenTransition.Cover,{SelectedItem:Gallery2.Selected})

The on select code for the edit icon looks like this. 

              Navigate(Edit_Screen,ScreenTransition.Cover,{SelectedItem:Gallery2.Selected})

I also have an add screen

Fuzzy1_1-1678982275808.png

 

Fuzzy1_2-1678982275810.png

 

 

And an edit screen

Fuzzy1_3-1678982275811.png

 

Fuzzy1_4-1678982275812.png

 

My problem is that the first time I use the application the add button and the edit icon work well.  But after the first update the add button works like the edit icon.  It will pull the last record used on the edit and the add button will act like an update. 

 

 

Categories:
I have the same question (0)
  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Fuzzy1 for your add button: 

    NewForm(Form2); Navigate(Add_Screen,ScreenTransition.Cover)

    For the edit icon in the gallery: EditForm(Form1); 

    Navigate(Edit_Screen,ScreenTransition.Cover,{SelectedItem:Gallery2.Selected})

  • Fuzzy1 Profile Picture
    171 on at

    @Drrickryp Thanks!

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 610

#2
Haque Profile Picture

Haque 317

#3
WarrenBelz Profile Picture

WarrenBelz 315 Most Valuable Professional

Last 30 days Overall leaderboard