I have a sharepoint list as data source, I have used powerapps to create a tabbed 'form' to the user.
The tabbed form is multiple screens with a form per screen, the user always starts on Screen 1(Demographics) from there they can navigate to any other screen they are not forced through in a linear fashion (i.e. screen1 >screen2 >final screen). The navigation buttons have an OnSelect that saves the current form and then navigates the selected form from the navigation.
My problem is that the last screen the user visits is not saved, the save button in sharepoint runs the OnSave in the sharepoint integration currently set to the default 'SubmitForm(FormDemographics)'.
What I have tried
I have a global variable 'VarFormTab' which is set by the individual screens OnVisible Set(varFormTab,"FormDemographics") I want to use this variable in the sharepoint integration OnSave SubmitForm(varFormTab) but this is not working. Have I got the syntax wrong or is this not possible?
I have considered having the sharepoint integration OnSave navigate to another screen (saving on the way) and revealing a pleasing "all saved" message but this feels messy.
For now I have gone with a long IF statement in the SP integration OnSave:
I am still very interested to find out if SubmitForm(varFormTab) is possible or if it is just poor syntax on my part.
Join us for the next call on August 17, 2022 at 8am PDT.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.