I have multiple screens in my edit SharePoint list form customized using powerups.
There is a field called next screen in the list which is updated by various buttons depending on the stage they are.
I put a code in the SharePoint Integration Edit section, below is the code.
Set(
SharePointFormMode,
"EditForm"
);
If(
SharePointIntegration.Selected.nextscreen = "Internal",
Set(
internal,
true
),
SharePointIntegration.Selected.nextscreen = "cor",
Set(
cor,
true
),
Set(
none,
true
)
);
If(
internal,
Navigate(
Internal_Form,
ScreenTransition.Cover
);
EditForm(EditView_1),
cor,
Navigate(
Cor_Form,
ScreenTransition.Cover
);
EditForm(EditView_2),
EditForm(EditView);
);
Set(
varformdata,
Defaults('Request')
);
The problem is my form always loads in COR screen even the nextscreen value is not cor.
What is wrong with the code?