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
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.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (1,364)