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??