cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
kinghnvn
Helper V
Helper V

Back to Previous tab

Hi,

 

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

 

kinghnvn_0-1637880211521.png

 

Thanks.

 

1 ACCEPTED SOLUTION

Accepted Solutions

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

Thank you
If this post helps, then Click on the Thumbs Up below. and Accept it as the solution . to help others find helpful.

View solution in original post

12 REPLIES 12
Ramole
Super User
Super User

Hi @kinghnvn 

 

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

 

Thanks 

Thank you
If this post helps, then Click on the Thumbs Up below. and Accept it as the solution . to help others find helpful.

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.

Hi @kinghnvn 

Add this Back button Back() 

Thank you
If this post helps, then Click on the Thumbs Up below. and Accept it as the solution . to help others find helpful.

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

Hi @kinghnvn 

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

Thank you
If this post helps, then Click on the Thumbs Up below. and Accept it as the solution . to help others find helpful.

@kinghnvn 

You also reference direct screen name like this 

 Navigate(ScreenName)
Thank you
If this post helps, then Click on the Thumbs Up below. and Accept it as the solution . to help others find helpful.

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

 

 

 

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

Thank you
If this post helps, then Click on the Thumbs Up below. and Accept it as the solution . to help others find helpful.

Yes, just remove OnVisible. it worked. thanks 🙂

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

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Users online (1,256)