Hi @martinav ,
Have you solved your problem?
Based on the issue that you mentioned, I have made a test on my side, and don't have the issue that you mentioned.
Please consider take a try to re-create a new app based on your SP list data source, and turn off/disable the "mproved app rendering (final validation)" option within Advanced settings of App settings of your app, then check if the issue is solved.
In addition, I also agree with your though almost. I think saving selected item in your Gallery into a variable would also be a better solution to achieve your needs.
If you want to write changes back to corresponding item in your SP list, you could consider achieve your needs using Patch function instead of SubmitForm function. I have made a test on my side, please take a try with the following workaround:
Set the OnSelect property of the Gallery to following:
set(GalleryItem, Gallery.Selected)
Set the Item property of the Edit form (Form1) to following:
GalleryItem
Set the OnSelect property of the "Edit" icon (click it to edit an item) to following:
Refresh('YourSPList');
EditForm(Form1);
Navigate(EditScreen, ScreenTransition.None);
Set the OnSelect property of the "Submit" button to following:
Patch(
'YourSPList',
GalleryItem,
Form1.Updates
)
If you have solved your problem, please go ahead to click "Accept as Solution" to identify this thread has been solved.
Best regards,