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 / How do I create an edi...
Power Apps
Unanswered

How do I create an edit form?

(0) ShareShare
ReportReport
Posted on by 697

This is probably a ridiculous question but I've never done this and I can't figure it out.

I have a 1 week calendar app that uses a Sharepoint List (Saginaw) as the data source.

 

(Excuse the ugly colors)

CharlesBrewer_0-1685555004602.png

I had no problem creating a Form to make a new Entry : 

CharlesBrewer_1-1685555052616.png


However I also need them to be able to click on one of those calendar evens, and bring up the info to Edit and/or Delete.

I just copied/pasted my "Add New" window/form to make an "Edit" form and I changed the Default Mode to Edit. But I just get this No item to display :

CharlesBrewer_2-1685555133368.png

So I am sure this is something simple, but how to I make the edit form pop up? I've seen help for like a single item, but I basically want the same as my New form, but an Edit (with a delete entry button ill add). I can't seem to get it to work 😞

Categories:
  • CU22081303-0 Profile Picture
    150 on at

    Hey, awesome test record descriptions haha.

     

    For the Edit Form, you need the "Data Source" property filled out with a table name or maybe a Sharepoint list in your case. Sorry, I haven't used Sharepoint as a data source so this is tricky for me to get right. You also need the "Item" property on the Edit Form to be populated and with what record should be displayed.

     

    What I did is create a gallery for my "Cases", and each row in the gallery has a button that sets a variable called "currentRecord" to that record's ID. Then, I have a Edit Form that looks at my Cases table for a data source, and the Item is the currentRecord variable.

     

    Gallery on the left, Edit Form on the right.

    TrekW_1-1685556678816.png

     

     

     

    OnSelect code for my gallery button (the blue > icons):

    Select(Parent);
    Set(currentRecord, Parent.Selected.Case);

     

     

    Data properties for my Edit Form:

    TrekW_0-1685556596614.png

     

     

    This is all on one page, though. You may want to make the action which sets the currentRecord variable also take you to another page where its just the form. Then add another Navigate function to the Edit Form's Save button to take you back to where you were. This is optional though.

    Select(Parent);
    Set(currentRecord, Parent.Selected.Case);
    Navigate(YeOldeEditFormScreen);

     

    You will need a Save button of some sort on your edit form, though. A Button with the code below as its OnSelect property would work fine I think. Don't be a goofball and make one of the field's OnChange property submit the form, that's just asking for tons of writes to the DB.

    SubmitForm (EditForm)

     

     

    What you have so far looks great, so I am confident if you made it that far, the info I provided should be enough for you to figure out this Edit Form. Let me know here if you have any other questions as you're working through it. Good luck, and sorry about your exploding trucks!

  • CU22081303-0 Profile Picture
    150 on at

    Also, don't forget to add some fields to the form for you to edit.

     

    TrekW_2-1685557191103.png

     

  • CharlesBrewer Profile Picture
    697 on at

    @TrekW ,

    I got it working. I was actually 90% there. I should have mentioned I was doing this in a popup window, not a new screen.

    I had this for the Onselect on my gallery items : 

    CharlesBrewer_2-1685565422554.png

    All I had to do was on the Form, set Item = varPopUpRecord

    And it started working. Such a silly little thing, I was trying Gallery6.Selected but alas, working now.

  • CU22081303-0 Profile Picture
    150 on at

    Awesome, glad you got it figured out!

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard