cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dreamsat
Helper III
Helper III

How to convert the SubmitForm command to a patch?

I created a new PowerApp and used the SharePoint template. In this template you will have 3 screens/forms. One of the screens/forms is the edit screen/form. In this screen/form there is a save button. On this save button there is an onSelect with the SubmitForm command. I would like to use here the patch do my own logic.

 

My form is showing 3 SharePoint list columns:

 

Datum (Type: Date)

Persoon (Type: People or Group)

ExternePersoon (Type: Single line of text)

 

How do I need to use my patch? I did try this, but it is not working:

 

Patch(
CoronaWerkplekRooster,
{ID: ItemID},
{
Datum: Datum_DataCard2,
Persoon: Persoon_DataCard2,
'Externe persoon': 'Externe persoon_DataCard2'
}
)

 

patch button.png

3 REPLIES 3
RandyHayes
Super User
Super User

@dreamsat 

Can you specify why you are wanting to use Patch over SubmitForm?

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

I would like to use an if statement and do 2 differant things depent on the comboboxPersoon

@dreamsat 

I am not sure of what your details are on the need you have, but yes this is all very possible. 

I would recommend using the SubmitForm as you are working with a form and adjust the Update property of the datacard for the field you want to base on a condition.

If you can supply more details or information, perhaps I could provide more solution for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (1,758)