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 / Editform function not ...
Power Apps
Answered

Editform function not working

(0) ShareShare
ReportReport
Posted on by 74

Hello! 

I have an app with a form and a gallery, both connected to the same share point list. I set the form in view mode and made an edit icon on the gallery to edit the respective item and put the form in edit mode, but it doesn't work. When I press the icon, the form changes to edit for less than a second and changes back to view. I'm not sure what to do in this situation, is that a bug or maybe I'm doing something wrong? If anyone knows, please help me. 

Thank you! 

Categories:
  • Verified answer
    Gerard Simpson Profile Picture
    2,987 Moderator on at

    Hi @1392022_rowep 

     

    When you created the form, did you create it as an Edit or Display form? - Edit form gives you the option to adjust the modes, but Display doesnt.

    AmDev_0-1666699792363.png

     

    Otherwise, I would just go through the logic in your code. The Onselect of the icon should be something like:

     

    EditForm(YourFormName); Navigate(FormScreen, None, {locRecord:ThisItem})

     

    Then the Item property of the form should be set to: locRecord

     

    If that is still giving you issues, I would do a search for 'reset' using the search function at the bottom of the left hand rail, to see if there is some inadvertant resetting back to the default mode of the form, which may be New? You could also set the form default mode to Edit as part of trouble shooting and use the ViewForm / NewForm functions to opt for those modes instead.

     

    Hope this helps

  • 1392022_rowep Profile Picture
    74 on at

    Thank you for the response! I found the problem, I didn't set the item of the gallery as the selected item, i set a variable of the current item to the this item in the On Select of the gallery and now it works. Thank you!

  • Gerard Simpson Profile Picture
    2,987 Moderator on at

    Great stuff 👍

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 383 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 356

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard