cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper II
Helper II

Multiple Screen Form - Preview Data

I have a SharePoint list with more than 80 fields. So I split them into multiple screens with few fields in each screen. Now I want to preview the data before it is submitted to SharePoint.

 

I created a Display form added all the fields. Now on Item property if I set it to Form1.Updates it gives me the data from just the form1. How to grab the information I added in other screens.

 

Thank you in advance!

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Re: Multiple Screen Form - Preview Data

@Lana 

I assume by PreviewForm you are referring to a DisplayForm?

 

If that is the case, then set the datasource of the DisplayForm to the same datasource as your other three EditForms and set the Item property of the DisplayForm to Patch(Form1.Updates, Form2.Updates, Form3.Updates)

 

Keep in mind, once you get past this, you will not be able to use a Submit on a single form to perform the Submit.

You will need to use a formula like this:

Patch(yourDataSource, Defaults(yourDataSource), Form1.Updates, Form2.Updates, Form3.Updates)

(this assumes a new record - doing an Edit in this way would be slightly different)

 

Also, make sure you check the Valid property of the forms.  So, for example, if your submit button/action is on the Preview screen, then you'll want to either disable or enable the button based on (Form1.Valid && Form2.Valid && Form3.Valid).

You might also consider a error message if invalid on the preview page, or prohibiting the user from even leaving Form1 to go to Form2 unless Form1 is valid.  Those are all your design choices.

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.

View solution in original post

9 REPLIES 9
Highlighted
Continued Contributor
Continued Contributor

Re: Multiple Screen Form - Preview Data

That sounds like a pretty cool app! 

 

I would try creating a variable at the very beginning using the ClearCollect function, then you could save the Form1.Updates to the Collection every time you go to a new screen. So after you leave the first form you could have a function like: Patch(CollectionName,First(CollectionName),Form1.Updates) and then when you leave the second screen it would be "Form2.Updates" etc. You would always just have one item in the collection and you could reference that item for the final display form displaying all the data. Something like: First(CollectionName)

 

Does that make sense? 

 

If not, let me know!

 

Kind regards,

 

Ben Fetters

www.sovereignsp.com

If this solved the problem for you, feel free to hit "Accept as Solution" so others can find the answer easier. 🙂

Kind regards,

Ben Fetters
Power Apps/Power Automate Developer
www.sovereignsp.com
Highlighted
Super User
Super User

Re: Multiple Screen Form - Preview Data

@Lana 

I am assuming that you created new forms on each screen.  If so, then you will need to refer to the .Updates property of each one that corresponds to the form the information is found in.

 

ex.  If FieldX is in Form1  and FieldY is on Form2, then in your submit preview, you would reference FieldX through Form1.Updates and FieldY through Form2 updates.

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Highlighted
Helper II
Helper II

Re: Multiple Screen Form - Preview Data

Are you saying, I have to add multiple forms in Preview Screen and set each form Item property to corresponding form.Updates property?

 

 

Highlighted
Super User
Super User

Re: Multiple Screen Form - Preview Data

@Lana 

No, not at all.  The question is, how are you previewing the data prior to submit?

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Highlighted
Helper II
Helper II

Re: Multiple Screen Form - Preview Data

@BenFetters I am sorry. I am new to PowerApps. I need more explanation to understand your solution.

Highlighted
Helper II
Helper II

Re: Multiple Screen Form - Preview Data

@RandyHayes ,

 

I have my fields in multiple screen and each screen has a form with few fields in it.

Form1 has

Field1, Field2, Field3 

 

Form2 has

Field4, Field5, Field6

 

and so on..

 

Now in my preview screen, on my PreviewForm I am setting the Item property of the form to Form1.Updates. It shows me the values for Field1, Field2, Field3 not for Field4, Field5, Field6. 

 

My question is how to show the values for all the fields from mutiple screens(forms) I have.

Highlighted
Super User
Super User

Re: Multiple Screen Form - Preview Data

@Lana 

I assume by PreviewForm you are referring to a DisplayForm?

 

If that is the case, then set the datasource of the DisplayForm to the same datasource as your other three EditForms and set the Item property of the DisplayForm to Patch(Form1.Updates, Form2.Updates, Form3.Updates)

 

Keep in mind, once you get past this, you will not be able to use a Submit on a single form to perform the Submit.

You will need to use a formula like this:

Patch(yourDataSource, Defaults(yourDataSource), Form1.Updates, Form2.Updates, Form3.Updates)

(this assumes a new record - doing an Edit in this way would be slightly different)

 

Also, make sure you check the Valid property of the forms.  So, for example, if your submit button/action is on the Preview screen, then you'll want to either disable or enable the button based on (Form1.Valid && Form2.Valid && Form3.Valid).

You might also consider a error message if invalid on the preview page, or prohibiting the user from even leaving Form1 to go to Form2 unless Form1 is valid.  Those are all your design choices.

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.

View solution in original post

Highlighted
Helper II
Helper II

Re: Multiple Screen Form - Preview Data

@RandyHayes  It worked like a charm. 😀

 

Thank you so much for the extra details. I really appreciate it!

Highlighted
Super User
Super User

Re: Multiple Screen Form - Preview Data

@Lana 

Excellent!  And, welcome to PowerApps!  Feel free to post any questions for problems you run into.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.

Helpful resources

Announcements
Ignite

Microsoft Ignite

This will be a conference that you do not want to miss!

secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (4,080)