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)
Guidance will be much appreciated?! @WarrenBelz @BCLS776 @CNT @RandyHayes @Drrickryp @timl @Pstork1 @Anonymous
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.
User | Count |
---|---|
126 | |
87 | |
85 | |
75 | |
69 |
User | Count |
---|---|
215 | |
180 | |
139 | |
97 | |
83 |