Inside our App's OnStart >> I have the following formula, to set the DisplayMode of a form:-
Set(
varRecord,
LookUp(
'Online Credit Request',
ID = Value(Param("onlinecreditrequestid"))
)
);
If(Param("custommode") = "new",NewForm(Form2),
Param("custommode") = "edit" && !IsBlank(varRecord),EditForm(Form2),Param("custommode") = "view" && !IsBlank(varRecord),ViewForm(Form2),Set(varStartScreen,"NotFound")
)
and if all the If statement condition fails, i am setting a global variable named "varStartScreen" to NotFound to redirect the user to a not found screen.. but seems i can not define a Navigate inside the Onstart property, nor i can pass the global var from the Onstart to the StartScreen property.. so how i can do the redirect tot he NotFound screen in this case?
Thanks