Navigate to screens based on the SharePoint List field value in PowerApps

Display Different FormViews based on SharePoint list value When edit the selected item.

1) Duplicate screens from the FormScreen1
2) Set the OnEdit property of the SharePointIntegration control to following formula:

Set(Varcurrent,LookUp('YourSPList', ID=SharePointIntegration.SelectedListItemID, CurrentStage));

If(Varcurrent="IT",Navigate(SharePointForm1_1,ScreenTransition.Fade),
Varcurrent="Facilities",Navigate(SharePointForm1_2,ScreenTransition.Fade));

3) Set the OnSave property of the SharePointIntegration control to following formula:


If(
    IsBlank(Varcurrent),  SubmitForm(SharePointForm1),
    Varcurrent="IT",SubmitForm(SharePointForm1_1),
    Varcurrent="Facilities",SubmitForm(SharePointForm1_2)
)

Comments

Popular posts from this blog

SharePoint 2016 and 2019 Ports

Clear fields based on drop-down values in PowerApps

Hide a SharePoint list field based on user group using JQuery Webservice in 2010