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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Use Navigate to select...
Power Apps
Answered

Use Navigate to select buttons?

(0) ShareShare
ReportReport
Posted on by 718

In this post https://powerusers.microsoft.com/t5/Building-PowerApps-Formerly/Custom-method-function-for-avoiding-repeated-code-in-powerapp/m-p/145158/highlight/true#M49807 @Anonymous says

"However, one thing I have tried (which works fairly well) is to use Navigate() to quickly hop to the screen with the button that has the buttons with the code I want on it, and then quickly navigate back by calling Back().  I pass parameters in the Navigate() to tell the other screen which "buttons" to press, and what to do."

 

How can you do this? Can I have an OnSelect Navigate to a page, press a button and navigate back all without user interaction? I am trying to utilize one button across multiple screens via Select() and this seemed like a workaround?

Categories:
I have the same question (0)
  • RezaDorrani Profile Picture
    12,143 on at

    Hi @BrianHFASPS 

     

    Yes you can but would not be a great User Experience

     

    What you could do is button 1 click - Navigate to other screen

     

    on the other screen

    OnVisible -   Select(Button2); Back()

     

    --------------------------------------------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

  • Verified answer
    v-xida-msft Profile Picture
    on at

    Hi @BrianHFASPS ,

    Do you want to utilize one button across multiple screens via Select() function?

     

    If you want to utilize one button across multiple screens via Select() function, I afraid that there is no way to achieve your needs. The Select function can't cross the boundaries of container controls, e.g. Gallery, Screen, Form, etc.

    More details about the limits on Select function, please check the following article:

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-select#description

     

    According to the needs that you mentioned, I think the OnVisible property could achieve your needs. In the first screen, add a Navigate button, set the OnSelect property to following:

    Navigate(Screen2, ScreenTransition.None, {Param1: Value1})

    Within the second screen (Screen2), set the OnVisible property to following:

    Back()

    If you want to navigate back after specific seconds (e.g. 2 seconds), I think the Timer control could achieve your needs. Please consider add a Timer control in your second screen, set the Duration property to following:

    2000

    set the AutoStart property to following:

    false

    set the OnTimerEnd property to following:

    Back()

    Please consider take a try with above solution, then check if the issue is solved.

     

    Best regards,

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard