I am customizing SharePoint library form in Power app.
OnSave
event there is:
SubmitForm(SharePointForm1)
However I want to save some custom values by applying formulas based on user selection and save to SharePoint fields without user knowing via form. How can i achieve it ?
I have tried
SubmitForm(SharePointForm1);
Patch(
Test_DocumentLibrary,
Defaults(Test_DocumentLibrary),
{
TestCol :"Ac"
}
);
but the above returns the error
network error when using patch function: the requested operation is invalid.
I have also tried by removing the line
SubmitForm(SharePointForm1);
false
to hide those from users. Set theirDefault
andUpdate
property to your calculated formula and it will be saved automatically when user saves the form.