Hello!
This may be very simple, but I am not managing to get it. I have a sharepoint list that has a YES/NO column. What I want to achieve in my app is having a button that navigates to Screen1 or Screen 2 depending on the value this column has...
Any idea? I am not even getting the formulas right to begin with...
Thanks a lot!! That really worked. I knew it would be really simple formula. I was trying something similar, but it wasn't working for me:
If(
LookUp(MyList, ID = ThisItem.ID).IsApproved,
Navigate(Screen1, ScreenTransition.None),
Navigate(Screen2, ScreenTransition.None)
)
@Germán - I think you mean you want to navigate to a specific screen based on the value of a Yes/No field for a specific record in your list.
One example:
If(
LookUp(
'Your List',
ID = 'Some ID,
'Your Yes/No Field'
),
//If Yes
Navigate(
Screen1,
ScreenTransition.None
),
//If No
Navigate(
Screen2,
ScreenTransition.None
)
)
Another example:
With(
{
_result: LookUp(
'Your List',
ID = 'Some ID',
'Your Yes/No Field'
)
},
Navigate(
Switch(
_result,
true,//If yes
Screen1,
Screen2
),
ScreenTransition.None
)
)
WarrenBelz
146,535
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,908
Most Valuable Professional