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 / Back to Previous tab
Power Apps
Answered

Back to Previous tab

(0) ShareShare
ReportReport
Posted on by

Hi,

 

Do you know how to create a Back button to Previous Tab?

 

kinghnvn_0-1637880211521.png

 

Thanks.

 

Categories:
I have the same question (0)
  • Ramole Profile Picture
    Super User 2024 Season 1 on at

    Hi @kinghnvn 

     

    Sorry did not understand your question, what you need to do?, please give more info in order to be assisted 

     

    Thanks 

  • kinghnvn Profile Picture
    on at

    I have two screen: A (previous screen) and B (current screen)

    For screen A: I have two gallery (UPCOMING and PREVIOUS), I select an item on PREVIOUS tab and it open a new windows (screen B) with Back button. I would like to click on the Back button it will be back to the PREVIOUS tab.

     

    Thanks.

  • Ramole Profile Picture
    Super User 2024 Season 1 on at

    Hi @kinghnvn 

    Add this Back button Back() 

  • kinghnvn Profile Picture
    on at

    yes. I'm using the code Back() but it will back to the screen with UPCOMING tab (not PREVIOUS tab)

  • Ramole Profile Picture
    Super User 2024 Season 1 on at

    Hi @kinghnvn 

    Can you show me a screen shots please so I can see

  • Ramole Profile Picture
    Super User 2024 Season 1 on at

    @kinghnvn 

    You also reference direct screen name like this 

     Navigate(ScreenName)
  • kinghnvn Profile Picture
    on at

    at the PREVIOUS tab screen -> click on icon to view detail

    kinghnvn_1-1637901255627.png

    then click on Back button

    kinghnvn_0-1637901046313.png

    it will be back to the UPCOMING tab screen, I want to it back to the PREVIOUS tab screen

     

    kinghnvn_2-1637901366449.png

     

     

     

  • Verified answer
    Ramole Profile Picture
    Super User 2024 Season 1 on at

    Hi @kinghnvn 

    Add this on back button 

    Navigate(MyAppts,ScreenTransition.Cover, {prevSelected:!prevSelected,upSelected:false})

    Make sure you delete Back() and use the code 

     

    Remove OnVisible the appointment screen this 

    UpdateContext({prevSelected:false});UpdateContext({upSelected:true});

    Captureremove.PNG

  • kinghnvn Profile Picture
    on at

    Yes, just remove OnVisible. it worked. thanks 🙂

    UpdateContext({prevSelected:false});UpdateContext({upSelected:true});

  • kinghnvn Profile Picture
    on at

    @Ramole 

    I have 3 screen (MyAppts/ MyAppts2/ MyAppts3) uses this back button.

    If I follow your steps it will back to MyAppts screen, that mean it's wrong when I want back to the MyAppts2 screen. Please advise.

     

    Navigate(MyAppts,ScreenTransition.Cover, {prevSelected:!prevSelected,upSelected:false})

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard