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 / Default Tab Settings
Power Apps
Answered

Default Tab Settings

(0) ShareShare
ReportReport
Posted on by 89

I have a List Gallery on screen 1.  When user selects item from list, it navigates to screen 2, which has the Edit Form and a gallery with 9 tabs. 

When I use “cancel” on screen 2, to return to screen 1, and make another selection – screen 2 navigates back to the last tab selected, rather than resetting back to the default tab “overview”.

Any suggestions on how to fix this?  I’m not finding much when I search online.  

Categories:
I have the same question (0)
  • v-yueyun-msft Profile Picture
    Microsoft Employee on at

    Hi , @pandalove19 

    You can try to use this method to reset the Tab list conrtrol.

    Screen2 -OnVisible :

    UpdateContext({locTab: {Value: "Item 1"}})

     

    Tab List - DefaultSelectedItems:
    locTab

     

    Tab List - OnSelect:
    UpdateContext({locTab: Self.Selected})

     

    vyueyunmsft_0-1716512966475.png

     

     

    If this reply can help you , you can click mark this reply as solution (Accept solution) which can help more people, thanks in advance! 

     

    Best Regards,

    Yueyun Zhang

     

  • pandalove19 Profile Picture
    89 on at

    On Screen 2:

    pandalove19_0-1716564503433.png

    On the Tab List Gallery:

    pandalove19_1-1716564561328.png

     

    Any suggestions for the errors I'm getting under OnSelect?

    pandalove19_2-1716564657043.png

    pandalove19_4-1716564687111.png

     

     

  • Gochix Profile Picture
    1,937 Moderator on at

    @pandalove19 ,

     

    The first error you receive is because you are setting the same variable differently somewhere else in the app. Check your variables and try for testing purposes using a different variable.
    _____________________________________________________________________________________
    Please give a thumbs up if I resolved your issue! Please click Accept as Solution to close the topic!

  • v-yueyun-msft Profile Picture
    Microsoft Employee on at

    Hi , @pandalove19 

    Where did you put the "UpdateContext({locTab: Self.Selected})" code in your side(Which control's OnSelect property)?

    Best Regards,

    Yueyun Zhang

  • Verified answer
    pandalove19 Profile Picture
    89 on at

    I changed the OnSelect icon to the following and it worked:

     

    Navigate(WR_Info_Screen);EditForm('WR Details Form');Reset('Tabs Header')

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 899

#2
Valantis Profile Picture

Valantis 571

#3
11manish Profile Picture

11manish 499

Last 30 days Overall leaderboard