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 / Multi page Form Help
Power Apps
Answered

Multi page Form Help

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi, 

 

I hope my situation makes sense here. 

 

I've created a multi-screen form in PowerApps. On the first page, I have a display gallery, where other users can view the records that they submitted. On the last page, I used the patch function on the submit button and it works but, when I test out the "edit function" the first page of the edit form is blank, but the rest of the edit forms (3-11) have the actual previously inputted data in them and allows for editing. 

 

Can someone help!

 

Thanks!

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    155,632 Most Valuable Professional on at

    Hi @Anonymous ,

    What is the DataSource, Item and Save code on the screens?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi, @WarrenBelz !

     

    The DataSource is a SharePoint List called Demo 2

     

    The Item for each edit form is Defaults('Demo_2')

     

    The Save/Submit function is Patch('Demo_2', Defaults('Demo_2'), Form1.Updates, From2.Updates...Form9.Updates) ; Navigate(End,ScreenTransition.CoverRight)

     

  • Verified answer
    WarrenBelz Profile Picture
    155,632 Most Valuable Professional on at

    @Anonymous ,

    You cannot use an Edit form with Defaults('Demo 2') as the Item - it will always be blank.

    You need to tell the form which record to display. If you have a gallery showing your records, it can be 

    YourGalleryName.Selected

    You could also set a reference on the Patch

    Set(
     varID,
     Patch(
     'Demo_2', 
     Defaults('Demo_2'), 
     Form1.Updates
     ).ID
    )

    Then your Edit form Item would be

    LookUp(
     'Demo 2',
     ID=varID
    )
    

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • WarrenBelz Profile Picture
    155,632 Most Valuable Professional on at

    Hi @Anonymous ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @WarrenBelz!

     

    Sorry for responding late. It worked. 

     

    Thank you so much! 

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @WarrenBelz!

     

    I now have another problem. 

     

    I have an "add new record button" on the page of the app, however, when I run my test the rest of the app, now all of the edit forms now show the previous record rather than being blank. 

     

    The OnSelect code is NewForm(Form1);Navigate(Demographics, ScreenTransition.Fade). 

     

    Is there something that I am missing?

     

    Thanks in advance!

  • WarrenBelz Profile Picture
    155,632 Most Valuable Professional on at

    Hi @Anonymous ,

    That code will simply produce a new record form, which will be blank until you input data.

    The previous code I supplied will show this record in the next form as long as you use the Patch code mentioned.

    Why are you expecting blank edit forms?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @WarrenBelz

     

    Well, I need the form to be blank when the user is adding a new record and I need the form to pull the selected record when they need to edit/add something to the record. 

     

    For some reason, I went back and set the default form mode to new but it isn't blank when starting a new record. 

     

    Thanks again!

  • WarrenBelz Profile Picture
    155,632 Most Valuable Professional on at

    @Anonymous

    What code are you using to open the form.

    A new form should be

    NewForm(YourFormName)

    and the edit form

    EditForm(YourFormName)

    the New Mode will be blank and the Edit Mode will display whatever record you have set in the Default. 
    What is different in yours?

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Well @WarrenBelz ,

     

    To start the form I just have this code for the first page of the form:

     

    NewForm(Demo);Navigate(Demographics, ScreenTransition.Fade)

     

    Then to edit the form:

     

    EditForm(Demo);EditForm(Dets);EditForm(InsQs);EditForm(TransQs);EditForm(CommQs);EditForm(CompQs);EditForm(PhysQs);EditForm(TeatQs);EditForm (NaviNotes);Navigate(Demographics,ScreenTransition.Fade)

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 414

#2
WarrenBelz Profile Picture

WarrenBelz 377 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 315 Super User 2026 Season 1

Last 30 days Overall leaderboard