Hi all.
Hope all are well. So what i did was merged 3 separate paper forms into 1 SharePoint list. I gave each form it's own screen and one screen has the navigation links to the form screen. When the user opens the form, the 1st screen they see is the screen with navigation links. The user will then click on the link to the form that they need to fill out. I am treating each form as its own. I added a button at the end of each screen that submits that screens data for that form.
All 3 nav buttons have OnSelect property set to (based on btn):
OnSelect: And(Set(btnIntIn, true), Set(btnRep, false),Set(btnUSBound, false), Set(varFormType, "International Initiation"));Navigate(InternationalInitiationScreen);ScreenTransition.None
Every form has this for the Item property:
Item: If(IsBlank(SharePointIntegration.Selected) || IsEmpty(SharePointIntegration.Selected),First([@'International Initiation Form']),SharePointIntegration.Selected)
For the SharePoint integration properties: (of course based on the type OnSave, OnEdit, OnView, OnNew and OnCancel):
OnNew: If(varFormType="International Initiation", NewForm(InternationalInitiationForm), If(varFormType="US Bound", NewForm(USBoundForm)), NewForm(RepatriationForm))
The OnSelect property for every forms Submit button is SubmitForm(InternationalInitiationForm); <-- the name of the form changes based on the form the user selected.
The issue that i am facing is that when i click on New Item (from the Sharepoint List) it displays the 1st records data. Not a blank form. Also, when i try to edit the record i get the first screen with the nav links. I havent been able to figure out how to display the form that was filled out when the user wants to edit an existing record.
Any help would be appreciated.
Thank you for your time.