I am developing an app where sharepoint list L1 being used as datasource. I have inserted gallery in my app. In gallery, I have inserted an edit icon. Clicking on this icon should open a form in edit mode with details of entry selected in gallery. I have also inserted a plus icon on the header of the page (outside of the gallery). Clicking on this plus icon should launch the same form in new mode.
Problem:
1) When I click on plus sign, it launches a new form and it allows me to submit the form without filling any details. But after submission, it shows that a new record has been created and most the values are from previous submission.
2) I have made 2 fields in the form as mandatory. Now- if I try to submit empty form, it stops me from doing that due to 1st mandatory field was blank. I entered some data in 1st mandatory field and again tried to submit but this time, it allows me to submit the form with 2nd mandatory field being blank. And it takes the value for 2nd mandatory field and other fields from the previous submission.
Not sure what is happening here? Is this a problem powerapps itself? Appreciate guidance on this.