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.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
At the monthly call, connect with other leaders and find out how community makes your experience even better.