No problem.
The forms are for new employee and updated employee details submitted from departments.
We have 5 forms for different types of contracts.
The initial "action screen" has a dropdown menu which loads the selected new input form.
When you choose to edit a form the "action screen" opens, waits then the edit form loads.
The edit form has extra fields for HR and Payroll to input progress information some of these fields are on separate lists.
Hope this info makes sense and helps.
Default mode is new
New.
Set(SharePointFormMode, "CreateForm"); NewForm(Newform1); Navigate(ActionTypeScreen, ScreenTransition.Fade)
Edit.
Refresh(Connect); // Add this formula
Set(SharePointFormMode, "EditForm");
If(SharePointIntegration.Selected.'Action Type'.Value = "05) Leaver",
EditForm(EditLeaversFormv2);Navigate(EditLeaversScreenv2,ScreenTransition.Fade),SharePointIntegration.Selected.'Action Type'.Value = "01) Change of Position - Teaching",
EditForm(EditCOP_TeachingForm_1);Navigate(EditCOP_TeachingScreen_1,ScreenTransition.Fade),
SharePointIntegration.Selected.'Action Type'.Value = "02) Change of Position - Non Teaching",
ViewForm(EditCOP_NonTeachingForm_1);Navigate(EditCOP_NonTeachingScreen_1,ScreenTransition.Fade))
View.
Set(SharePointFormMode, "ViewForm"); If(SharePointIntegration.Selected.'Action Type'.Value = "05) Leaver",
ViewForm(ViewLeaversFormv2);Navigate(ViewLeaversScreenv2,ScreenTransition.Fade),
SharePointIntegration.Selected.'Action Type'.Value = "01) Change of Position - Teaching",
ViewForm(ViewCOP_TeachingFormOLD);Navigate(ViewCOP_TeachingScreenOLD,ScreenTransition.Fade))