cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
Super User III
Super User III

@dreamsat 

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

_____________________________________________________________________________________
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.
Check out my PowerApps Videos too!

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. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

Helpful resources

Announcements
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (8,090)