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.
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.
Use Update property of Data card for updating Date value
Use Update property of Data card for updating Boolean value
Use Update property of Data card for updating Text value
This is how we can update field values in SharePoint List form on a button click in Power Apps.