Skip to main content

Notifications

Community site session details
Power Apps - Building Power Apps
Answered

How do navigate to a designated screen based on Button text?

Like (0) ShareShare
ReportReport
Posted on 22 Mar 2023 20:26:24 by 7

I'm a total beginner in Power Apps, so bear with me. I've successfully created a multi-screen form. I've created a status button on the home screen of the app. The button's text updates according to the status of the record. I want to direct the user to the appropriate form/screen, based on the text/status of the button. Can this be done with one button control?

 

Example:

If button reads "Pending Disposition" navigate to the "Disposition Form",

If button reads "Pending Approval" navigate to the "Approval Form"

 

Current State: Button Property, ON SELECT:

 

 

If(
 Text(Button4) = "Pending Disposition",
 ResetForm(HoldForm1);
 ResetForm(HoldForm2);
 ResetForm(DispositionForm);
 ResetForm(ApprovalForm);
 Set(
 varFormData,
 varIdea
 );
 Navigate(
 'Disposition Screen',
 ScreenTransition.Fade
 )
)

 

 

 

 

 

 

  • mramey Profile Picture
    7 on 22 Mar 2023 at 21:05:01
    Re: How do navigate to a designated screen based on Button text?

    Thank you so much! That worked beautifully!

  • Verified answer
    mmollet Profile Picture
    3,187 on 22 Mar 2023 at 20:31:34
    Re: How do navigate to a designated screen based on Button text?

    Use nested if statements like this:

    If(
    Self.Text = "Home",
    Navigate(HomeScreen),
    If(
    Self.Text = "Clock In",
    Navigate(ClockIn)
    )

    );

     

    Or use a switch like this:
    Switch(
    Self.Text,
    "Home",
    Navigate(HomeScreen),
    "Clock In",
    Navigate(ClockIn)
    )

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Apps - Building Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 285 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 146

#3
stampcoin Profile Picture

stampcoin 130

Overall leaderboard
Loading started
Loading started