Submit SharePoint List Form On Button Click Power Apps

Description

The requirement is to Submit SharePoint List form on a button click in Power Apps.

In order to achieve this, we must use Update Property of a Data card using a variable.

Submit Sharepoint List Form On Button Click Power Apps.

First, on a button click initialize the variables with values. In this form, we are updating Choice, Date, Boolean, and Text field.

Set(varStatus, "1. Draft with Manager");
//Set date correspondence sent to Manager
Set(varDateResponseSentToManager, Today());
//Assigned to Author
Set(varAssignedAuthor, true);
//Set Author name
Set(varAuthorName, User().FullName);

Next, use Update property of Data cards to update values in form.

For Choice field, DefaultSelectItems property of Data card value is used to update property.

Submit Sharepoint List Form On Button Click Power Apps.

Submit Sharepoint List Form On Button Click Power Apps.

Use Update property of Data card for updating Date value

Submit Sharepoint List Form On Button Click Power Apps.

Submit Sharepoint List Form On Button Click Power Apps.

Use Update property of Data card for updating Boolean value

Submit Sharepoint List Form On Button Click Power Apps.

Submit Sharepoint List Form On Button Click Power Apps.

Use Update property of Data card for updating Text value

Submit Sharepoint List Form On Button Click Power Apps.

Submit Sharepoint List Form On Button Click Power Apps.

This is how we can update field values in SharePoint List form on a button click in Power Apps.