Hi all -
Working on a Power App writing back to Dataverse. I'm using an "If" statement to navigate to a particular screen depending on which Item is chosen from a Dropdown.
There are 5 screens to potentially navigate to:
Beef
Pork
Wild Game
Goat
Sheep
Navigation should occur "OnSuccess" of an order submission using a form. My current statement looks like this:
If(
"Beef" in DataCardValue36.Selected.Value,Navigate('Beef Screen',ScreenTransition.Fade),
"Pork" in DataCardValue36.Selected.Value,Navigate('Pork Screen',ScreenTransition.Fade),
"Wild Game" in DataCardValue36.Selected.Value,Navigate('Wild Game Screen',ScreenTransition.Fade),
"Sheep" in DataCardValue36.Selected.Value,Navigate('Sheep Screen',ScreenTransition.Fade),
Navigate('Goat Screen',ScreenTransition.Fade))
No matter what I choose - the data gets written back correctly, but I'm only navigating to the 'Goat Screen", which is my "Else" option after it evaluates the first 4.
What am I missing?