Dear All,
I'm needing my multi-screen application to have a button that, depending on the value of a text input, goes to one screen or another, conditioned by the value of the text input.
I have tried several formulas, I leave them here, but using the same values ​​it navigates to different screens in each attempt, which is a mistake because sometimes it navigates to the correct screen and in others it doesn't, even with the same value in text input.
I would greatly appreciate your support on this issue.
#01
If(
Value(Label1.Text) <=-11 && Value(Label1.Text) <=-1000,
Navigate(AvancSalario, ScreenTransition.Cover),
Navigate(Home, ScreenTransition.Cover);
Reset(Pag3_diferenciaOculto);
Reset(inicio_nombre))
#02
If(
Value(Label1.Text) <=-11,
Navigate(AvancSalario, ScreenTransition.Cover),
Navigate(Home, ScreenTransition.Cover),
Reset(Pag3_diferenciaOculto),
Reset(inicio_nombre));
If(
Value(Label1.Text) <=-1000,
Navigate(AvancSalario, ScreenTransition.Cover),
Reset(Pag3_diferenciaOculto),
Reset(inicio_nombre));
If(
Value(Label1.Text) >=-11,
Navigate(Home, ScreenTransition.Cover),
Reset(Pag3_diferenciaOculto),
Reset(inicio_nombre));
If(
Value(Label1.Text) >=-1000,
Navigate(Home, ScreenTransition.Cover),
Reset(Pag3_diferenciaOculto),
Reset(inicio_nombre));
#03
Switch(
true,
Value(TextInput2.Text) >= -1000 && Value(TextInput2.Text) <= -11, Navigate(AvancSalario, ScreenTransition.Cover),
Value(TextInput2.Text) <= -11, Navigate(AvancSalario, ScreenTransition.Cover),
true, Navigate(Home, ScreenTransition.Cover);
#04
If(
Value(var_diferenciaOculta) <=-11 && Value(var_diferenciaOculta) >=-1000,
Navigate(AvancSalario, ScreenTransition.Cover),
Navigate(Home, ScreenTransition.Cover)
)
;
Reset(Pag3_diferenciaOculto);
#05
Switch(
true,
Value(Pag3_diferenciaOculto.Text) < -1000, Navigate(AvancSalario, ScreenTransition.None),
Value(Pag3_diferenciaOculto.Text) <= -11, Navigate(AvancSalario, ScreenTransition.None),
Value(Pag3_diferenciaOculto.Text) >= -10, Navigate(Home, ScreenTransition.None)
)