web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Button navigate to dif...
Power Apps
Unanswered

Button navigate to different screens depending on the value of a text input

(0) ShareShare
ReportReport
Posted on by 44

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)
)

I have the same question (0)
  • Parvez Ghumra Profile Picture
    1,579 Moderator on at

    @Exiled "ControlName.Text" will return a value of type string. Comparing this to an integer value will always return false. I'd suggest trying to enclose the numeric values that you're trying to use in your condition expressions, inside double-quotes.

  • Parvez Ghumra Profile Picture
    1,579 Moderator on at

    @Exiled Sorry, ignore above comment. Just realised you're using the Value function

  • Exiled Profile Picture
    44 on at

    Hi @parvezghumra 

     

    Thank you very much for your prompt response,

     

    following your advice would it be this way?

     

    Switch(
    true,
    Pag3_diferenciaOculto.Text= ">= -12" && Pag3_diferenciaOculto.Text= "<= 1001", Navigate(AvancSalario, ScreenTransition.Fade),
    true, Navigate(Home, ScreenTransition.Fade)
    )

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 549 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 225 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 224

Last 30 days Overall leaderboard