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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

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

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,776 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,093 Most Valuable Professional

Leaderboard
Loading started
Loading started