Conditional navigation with IF statements and Linktoview()

 Hi! I'm hoping someone can help me.

I would like to use a form to help users navigate my app. It'll look like this:

K_Emm_1-1689299860602.png

Depending on the selection made, the app should navigate to an appropriate view. I'm using the Action: "Go to another view within this App". Here's the LinktoView() /If Statement expression I'm using: 

Linktoview(if([Navigation]="Onboard a new employee","New Employee_Form",

if([Navigation]="Onboard a new vendor","Vendor Intake_Form",

if([Navigation]="Start a project with multiple tasks","Projects_Form",if([Navigation]="Track a single task","Tasks_Form",

"Kanban")))))

Here's the table schema: 

K_Emm_2-1689299984657.png

Here's the form settings:

K_Emm_3-1689300113313.png

The problem is I either get a blank page, or or another view, usually my first page.  Any help will be appreciated.

 

Solved Solved
0 3 274
1 ACCEPTED SOLUTION

I found the Form Saved action in the Behavior section of the view settings. I updated to the action I created and it works perfectly. Thank you!

K_Emm_0-1689356611552.png

 

View solution in original post

3 REPLIES 3

That expression looks ok, however I'd certainly use an IFS or SWITCH instead of better readability and to be more concise.

Are you running it as a form save action, or how?

This is as far as I got. How do I run it as a form save action?

I found the Form Saved action in the Behavior section of the view settings. I updated to the action I created and it works perfectly. Thank you!

K_Emm_0-1689356611552.png

 

Top Labels in this Space