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!
Solved! Go to Solution.
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.
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.
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
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.
@ThatAPIGuy Thank you for the Update,
unfortunatly i am still having the same Error.
Does that mean, i cannot have any required Filds in the first 2 Forms?
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.
Hi,
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
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.
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
Stay up tp date on the latest blogs and activities in the community News & Announcements.
Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
User | Count |
---|---|
198 | |
178 | |
64 | |
34 | |
32 |
User | Count |
---|---|
340 | |
273 | |
116 | |
73 | |
57 |