An expression to dynamically select the starting view for the app

Hello everyone

Is there a good expression that sends each user to a specific view once opening the app.

For example, if there are

►sellers table that includes seller name and email. (email is an id)

►Drivers table that includes driver name and email. (email is an id)

►Coordinators table that includes coordinator name and email. (email is an id)

and there are 3 views…

►seller view

►Driver view

►Coordinator view

so the pseudocode of the expression is like this:

If login email = seller email

open seller view

&

If login email = driver email

open driver view

&

If login email = coordinator email

open coordinator view

any hint plz, Thanks

There’s IFS() or SWITCH()

https://help.appsheet.com/en/articles/2355961-ifs

https://help.appsheet.com/en/articles/2355972-switch

Are you aware that the starting view only works for the very first time an app is opened on a device? Every other time it is opened, it returns to the most recently seen view.

2 Likes

@Marc_Dillon

Thank you very much

if it is like this then no need to do anything