web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Error-Double click on ...
Power Apps
Unanswered

Error-Double click on Save button to submit edit form

(0) ShareShare
ReportReport
Posted on by 6

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

Categories:
  • C-Papa Profile Picture
    1,836 on at

    can you post your code for the form items and the submit button

  • kranubhav Profile Picture
    6 on at

    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()) 

    Onfailure- navigate(homescreen) 

     

    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

  • C-Papa Profile Picture
    1,836 on at

    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. 

  • kranubhav Profile Picture
    6 on at

    I removed that but Still the issue persists.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard