I have a gallery control and the form control in the same screen. When selecting one item in the gallery, form control shows the records of that selected item in the edit mode.
The issue is when I click on the save button after making any change in the record, first time when I click the save button(submitform(formname) ) , it fails to submit the form. Upon clicking for the second time, it saves and navigate me to the success screen. Can any one help??
For the form-
Items - varDetailsAdmin( I have set this variable at the time of selecting the gallery i.e set(varDetailsAdmin, thisitem)
Onsuccess - navigate(success screen) ; set(varDetailsAdmin, blank())
Update button -
Display mode - if(form1.unsaved,edit,disabled)
Onselect - submitform(form1)
When clicking the update button for the first time, it navigates to home screen and then again coming back to form n clicking again it navigated to success screen
try deleting ; set(varDetailsAdmin, blank()) from your form onsuccess, I'm interested to see if when this is set as blank it is causes the form to fail. you might be able to set it somewhere else.
Keep up to date with current events and community announcements in the Power Apps community.
A great place where you can stay up to date with community calls and interact with the speakers.
Check out the latest Community Blog from the community!