OnSelect is taking me to the wrong record in my form. Sometimes when I choose a record from the gallery it takes to the correct item but other times it takes me to a form of another item. It happens randomly. This is what I am using.
Refresh('Submitted Requests');If(!IsBlank(LookUp('Submitted Requests', Title=(Gallery2_3.Selected.Title))),Navigate('CR Form',ScreenTransition.CoverRight,{locMode:FormMode.Edit,varRecord:LookUp('Submitted Requests', Title=(Gallery2_3.Selected.Title))}), Navigate('CR Form',ScreenTransition.CoverRight,{locMode:FormMode.New,varRecord:Blank()}))