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

Diffrent Screens with different Forms into one SharePoint List

Hello,

 

i would like to have

 

a NewScreen

- title field

- description

- deparment

 

and the EditScreen1 should adress other fieds

- field A

- field B

- field C

 

and the EditScreen2 should adress

- field D

- Field F

 

And while i am on NewScreen i want to have the option to Submit the Form with only those 3 fields and edit it later OR to continue to EditScreen1 and edit those fields and here aswell i want the option to Save (and Submit the so far filled fields) OR to continue to EditScreen2 and be able to fill those fields.

 

I know about the Patch funtion, but i am not Sure how to use it here. I'd be glad about any Help. Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Re: Diffrent Screens with different Forms into one SharePoint List

@Magnifica

 

There was an error in my code. Try this -

 

Patch(DataSourceName, Defaults(DataSourceName),NewScreenFormName.Updates, EditScreen1FormName.Updates, EditScreen2FormName.Updates)

 

If this doesn't work, do you mind sharing screenshots of the OnSelect property of the different screens' Submit buttons.


Vivek Bavishi aka That API Guy
PowerApps and Flow MVP
Blog | Twitter | YouTube | Community Profile | GitHub



If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

8 REPLIES 8
Highlighted
Super User
Super User

Re: Diffrent Screens with different Forms into one SharePoint List

@Magnifica

 

I am assuming you are using forms with the same datasource in different screens.

 

You need to use something like the below code for your submit button  on any of the screens -

 

Patch(DataSourceName, NewScreenFormName.Updates, EditScreen1FormName.Updates, EditScreen2FormName.Updates)

 

Let me know if this doesn't work.


Vivek Bavishi aka That API Guy
PowerApps and Flow MVP
Blog | Twitter | YouTube | Community Profile | GitHub



If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Highlighted
Helper I
Helper I

Re: Diffrent Screens with different Forms into one SharePoint List

Hello @ThatAPIGuy and thank you for the reply.

 

The Error i get using your code are my required fields, those are on NewForm

while on EditForm2 i want to patch i get the Error that Title is a required field, even tho i have entered a Title on NewForm. 

So I cannot Patch my Forms

 

Highlighted
Super User
Super User

Re: Diffrent Screens with different Forms into one SharePoint List

@Magnifica

 

There was an error in my code. Try this -

 

Patch(DataSourceName, Defaults(DataSourceName),NewScreenFormName.Updates, EditScreen1FormName.Updates, EditScreen2FormName.Updates)

 

If this doesn't work, do you mind sharing screenshots of the OnSelect property of the different screens' Submit buttons.


Vivek Bavishi aka That API Guy
PowerApps and Flow MVP
Blog | Twitter | YouTube | Community Profile | GitHub



If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Highlighted
Helper I
Helper I

Re: Diffrent Screens with different Forms into one SharePoint List

@ThatAPIGuy Thank you for the Update,

 unfortunatly i am still having the same Error.

Bildschirmfoto 2018-04-04 um 21.21.41.png

 

 

 

Does that mean, i cannot have any required Filds in the first 2 Forms?

Highlighted
Super User
Super User

Re: Diffrent Screens with different Forms into one SharePoint List

@Magnifica

 

can you clarify if all these forms are in the mode - New or Edit?

 

For your case, all the forms should be in New mode for the whole thing to work.

 

Alternatively, if you have only these many fields , you could also use text input controls on each screen and then Collect all the data -

 

Collect(DataSourceName, Defaults(DataSourceName) , {Title:textinput1.Text, Description:TextInput2.Text, ...})


Vivek Bavishi aka That API Guy
PowerApps and Flow MVP
Blog | Twitter | YouTube | Community Profile | GitHub



If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Highlighted
Helper IV
Helper IV

Re: Diffrent Screens with different Forms into one SharePoint List

Hi,

@Magnifica@ThatAPIGuy

In my scenario, 

From screen1--> edit screen1 

Dropdown1=A,B,C

There are  3 different edit screens that will be navigated based on the the options they slect on dropdown1

There are couple of columns same in all there edit screens and some of them may wary.

So What's my bug is 

When a user selects options from Dropdown1 i waqs able to navigate them to different screens and then save the form.

But when i'm trying to view the item that's already created with data, i was only able to see the screen where user will be able to slecet Options on dropdown1. can i know how to fix this how can a user view ,edit and save data on different edit screens.

Thanks in advance

MK

Highlighted
Super User
Super User

Re: Diffrent Screens with different Forms into one SharePoint List

@MK1

 

If I understand it correct, only the inputs on the first screen (where you the dropdown1) are being saved in your datasource. 

 

Can you share the formula that you are using for the submit form button both on the dropdown1 screen and the other edit screens?

 

-Vivek

 


Vivek Bavishi aka That API Guy
PowerApps and Flow MVP
Blog | Twitter | YouTube | Community Profile | GitHub



If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Highlighted
Helper IV
Helper IV

Re: Diffrent Screens with different Forms into one SharePoint List

@ThatAPIGuy,

https://wonderlaura.com/2017/12/08/customize-list-forms-powerapps-easy-button/ 

Based on the above link I have changed my formulas as,

On Save: If(DataCardValueA.Text = "A",SubmitForm(AFORM),If(DataCardValueB.Text = "B",SubmitForm(BFORM),If(DataCardValueC.Text = "C",SubmitForm(CFORM),false)))

 

I didn't use any buttons because i'm buliding my form as Customised Form. So, tying to change the formula same as above link provided.

But the only difference is I'm having 3 different edit forms.

 

Thanks,

MK

 

 

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

Top Solution Authors
Top Kudoed Authors
Users online (6,024)