Hi,
I see i'm not the first one to encounter this issue of sequence.
But i have a power app where i have a gallery, which is connected to a Form.
When is select the gallery, i need
- a NewForm if the record doesn't exist yet in the data set of the form
- if i do find a match in the dataset with the Item selected in the gallery, i need to display (EditForm) this data in my form.
When I select a new Item in the gallery, i need
- the form to be posted against the Item that was selected before
- a NewForm displayed if the record doesn't exist yet in the data set of the form
- if i do find a match in the dataset with the Item selected in the gallery, i need to display (EditForm) this data in my form.

Where do i define my Form mode?
is it in the "onSelect'" property of my gallery,
If(
IsEmpty(First(Filter('Oevel-NCR-NonConfomityList',Title = Gallery1_1.Selected.Title)).Title),
NewForm(Form10_3),
EditForm(Form10_3)
)
or on the "onSucces" of the Form?
If(
IsEmpty(Filter('Oevel-NCR-NonConfomityList',Title = Gallery1_1.Selected.Title)),
NewForm(Form10_3),
EditForm(Form10_3)
),
How do i Make sure the data submited in the submitform is against the Item that was selected before; and not the Item i now have selected in the gallery.
I tried to work around this with the 'submit data' button, so only after the button is clicked, a new selection in the gallery should be made... but this is very counter productive, and users will forget to click the button... but even then the radio controls will keep the value they had last time selected, and not the values of the newly selected Item.