Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 8Q7kgk7T8eH3eot1s7woxY
Power Apps - Building Power Apps
Unanswered

PowerApps Edit form vs View Form

Like (0) ShareShare
ReportReport
Posted on 8 Jun 2023 18:32:31 by 14

I have an edit form on a Screen in my PowerApp that isn't displaying the data. It currently references "Gallery.Selected" which is the gallery where an item is selected that I want to edit. I've had this work fine in the past but in the latest PowerApp it doesn't want to work. To see if the data was transferring correctly I set a junk View Form on the same Screen and it displays the data fine with the same data source and same Item information. The only difference between the two seems to be "Edit" versus "View". If I set my Edit Form to View and back to Edit it starts displaying the data. When I switch pages and come back in play mode it doesn't show the data anymore. It is very confusing. I've changed how I reference the data multiple times. I've used the direct "Gallery.Selected" approach. I've also used the "Lookup(DataSource, ID = Gallery.Selected.ID)" approach. The data reference appears to be fine but the edit form simply doesn't want to display data. I wiped it and re-created it from scratch and still nothing.

  • Ididar Profile Picture
    14 on 09 Jun 2023 at 17:09:12
    Re: PowerApps Edit form vs View Form

    Spoke to one of my colleagues and he recommended a band-aid solution which is working for me for now.

     

    On my button that transitions to the Edit Form screen I define a global variable that I called "Fix" which is used in the Mode for the Form Edit. When I hit that button it changes the variable to FormMode.View and then back to FormMode.Edit right away. Now when I load that page all the data is displayed.

     

    Baffling but it has solved the functional problem even though I don't like not knowing why I have to patch it like this.

  • Ididar Profile Picture
    14 on 09 Jun 2023 at 12:57:40
    Re: PowerApps Edit form vs View Form

    Attached is the properties for my Edit Form. 

     

    My exact steps were Insert > Edit Form, pick my data source, pick my fields, and then manually set the Item to "Gallery_DWG.Selected". I've redone the process multiple times thinking that my customizing on the previous one might have "broken" something but no change in my results. My View form has the same data for DataSource and Item just obviously without the "DefaultMode" field.

  • Ethan_009 Profile Picture
    4,838 Super User 2025 Season 1 on 09 Jun 2023 at 12:44:50
    Re: PowerApps Edit form vs View Form

    Hi @Ididar ,

     

    View Form is used to merely display columns is read-only state, while Edit Form can be used for editing and viewing records.

    Now, when using Edit Form:

    1. Creating new Record => Use NewForm(Form1) to set Form as new FormMode which will be initiated to create a new Record in the datasource. All columns will be blank so User can enter data.

    2. When editing existing record => Use EditForm(Form1) and then pass which Record you want to edit in "item" property of the Form. 

    3. For Viewing the EditForm in view state, simply change FormMode.View which will turn entire form to act as ViewForm.

    4. Note: In order to show the Form when in playmode, make sure the Form is initalized as NewForm() or EditForm().

     

    Hope this helps

  • Ididar Profile Picture
    14 on 09 Jun 2023 at 11:37:29
    Re: PowerApps Edit form vs View Form

    That's all generic items that I've already reviewed. My Edit form matches the instructions but it's just not working. I'm baffled as to why that might be the case that a View Form and Edit Form can have identical item and database information but the edit form doesn't show the data.

  • HectorOlivos Profile Picture
    411 on 08 Jun 2023 at 20:43:27
    Re: PowerApps Edit form vs View Form

    Hi

     

    Hope this helps for you!
    https://powerapps.microsoft.com/en-us/tutorials/working-with-forms/

     

    If this post helps, please consider accepting it as the solution.

     

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Building Power Apps

#1
MS.Ragavendar Profile Picture

MS.Ragavendar 10

#2
LC-26081402-0 Profile Picture

LC-26081402-0 6

#3
EE-04041031-0 Profile Picture

EE-04041031-0 4

Overall leaderboard
Loading started