OnSave action of my list form SharePointForm1 is not present when customizing list form in Powerapps.
*Requirement is to Patch a collection with SP List with the Form's OnSave functionality (separate save button is not required)
There is no OnSave property on a Form.
You might mean OnSuccess which is the hook you can use for when the Form is submitted successfully.
The others may be helpful too:
To initiate the Form to "Save", you would use SubmitForm(FormName)
@GarethPrisk How do we trigger SubmitForm(FormName) via the default Save button of List form?
In my case OnSuccess of the form "SharePointForm1" may create an empty item row apart from the required operation. A list item ID will be generated unnecessarily. Also form validations may fail and OnSuccess may never be called... Is there any workaround to meet the requirement?
Clicking the Save button on a SharePoint-based Power App, will cause the app to SubmitForm() for the given form.
There are several assumptions
You can confirm this by replacing the OnSuccess for the Form, with something like Notify("Save Was Clicked"); to confirm it is invoked.
Any required fields/validation is still checked, when clicking Save. It assumes you have required columns, or have added custom validation logic.
OnSave is not on the form. It is on the integration. Click on the SharePointIntegration object in your control tree and you will find OnSave there.
I hope this is helpful for you.
Check out the News & Announcements to learn more.
Did you know that you can visit the Power Query Forum in Power BI and now Power Apps
Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.
Check out our new Discover Your Career Path blog post series and get all the details.