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

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


And an edit screen


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.