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 / TabList issue setting ...
Power Apps
Unanswered

TabList issue setting default

(1) ShareShare
ReportReport
Posted on by

I created a table, and i have a container popup with embeded Tablist, i would like to set the visible property to always show TabValue 1 first (site information), does anyone know what the formula for the visible property would be?

 

Table(
{Location:"Site Information",TabValue:1},
{Location:"Contact Information",TabValue:2},
{Location:"Modality Information",TabValue:3})

 

would also like to set the default form display to few if possible

 

attached screenshot for tablist

 

Categories:
I have the same question (0)
  • timl Profile Picture
    36,383 Super User 2025 Season 2 on at

    @vandam2 

    To do this, you'd set the DefaultSelectedItems property of the tab list control to this:

    Table(
     {Location:"Site Information",TabValue:1}
    )

     

    timl_0-1683652440347.png

     

  • vandam2 Profile Picture
    on at

    it allows me to apply the default but when i select another tab, then leave teh screen and go back in it doesnt default back to Site Information, is there a way to set the tabvalue with visible property to default to tab1?

  • timl Profile Picture
    36,383 Super User 2025 Season 2 on at

    Hi @vandam2 

    You can resolve this by setting the OnVisible property to this:

    Set(varRecord,
     Table(
     {Location:"Site Information",TabValue:1}
     )
    )

    You would then set the DefaultSelectedItems property of the tablist control to varRecord.

  • vandam2 Profile Picture
    on at

    so frustrating, still doesnt work, tried the visible property but no luck, then tried a button to set variable and add varRecord in the defaulselecteditems, but nothing will work, it still sticks to the last selection you choose, 

     

    might just stick with normal tabs, tablists are too dam frustrating

  • f2 Profile Picture
    105 on at

    @vandam2 
    Did you ever get this resolved? I'm currently stuck with the same thing. Cant seem to make tab1 the default and unable to figure out how to use buttons to navigate either to tab1 or navigate through the tabs.

    I've almost finished my most ambitious app yet (well ambitious for me lol) and thought I would figure that out at the end, I'm now thinking I might need to re-do the whole thing using the old style controls.

  • chrisrodman Profile Picture
    2 on at

    @f2 -- Found a workaround for this tab list not resetting to the default:

     

    1. Add a radio control with the same exact items as the tab list, example: 
      ["Open", "Closed", "All"]
    2. Set the DefaultSelectedItems property of the Tab list to the radio control, example: 
      [Radio1.Selected.Value]
    3. Set the Default property of the radio control to the default you choose, example: 
      "Open"
    4. Set a global variable in the Tab list On Change property, example: 
      Set(gblTabFilter, Self.Selected.Value);
    5. Set a button OnSelect property OR the screen OnVisible property (based on your app situation) to update the variable to the desired default, example: OnVisible of the screen that has the Tab list: Set(gblTabFilter, "Open");
    6. Set the radio control Default property to the variable: gblTabFilter
    7. Verify when selecting different tab list values that the radio updates to the same value
    8. Verify the tab list and radio are reset in the moment you want (might be from an OnSelect or OnVisible property in your scenario)
    9. Hide the radio control when done as the tab list is what we want to show and use by setting Visible property to false

     

    I am resetting the variable for radio default in the screen OnVisible as my scenario is user selects record on screen 1, and on screen 2 the tab list should always default to the same value.

    Hope the modern controls are updated ASAP to have basic properties to edit (font, colors, reset, default, etc.)!

  • alecolli2 Profile Picture
    75 on at

    @f2 / @vandam2 

     

    I found another work around using collections, if you are still looking for solutions or alternate ways to do this. Similar to using the radio, but instead using a collection, I have responded to another thread, you can see more details below;

     

    https://powerusers.microsoft.com/t5/Building-Power-Apps/How-To-Reset-Power-Apps-Modern-Control-Tab-List-To-Default-Value/td-p/2281624 

     

    Again unfortunately not a direct way and hopefully they will fix this issue, in the meantime I hope this helps

  • mychau Profile Picture
    56 on at

    This works. thank you

  • CU10100204-0 Profile Picture
    2 on at
    I got you cover ! 
     
    So I build it into a component, because I felt easy to reuse over multiple apps I need to leaverage but it's not necessary. But basicly it goes like this:
     
    ClearCollect(colNavigationSubMenuContrats,
        {
            Id: 1,
            Title:      "Contrats",
            NavigateTo: ContratsDetails,
            IsVisible:  true
        },
        {
            Id: 2,
            Title:      "Projets",
            NavigateTo: Projets,
            IsVisible:  true
        }
    );

    This collection is use in "Items"
     
    For the "DefaultSelectedItems" I did this, and it's it work find all the time (No reset, No Clear, it's scalable and it just work):
     
    {
        Id: 1,
        Title:      LookUp(NavigationSubMenu.MenuItems,NavigateTo=App.ActiveScreen).Title,
        NavigateTo: App.ActiveScreen,
        IsVisible:  true
    }
  • Ravindra Jadhav Profile Picture
    342 Moderator on at
    Please Closed the Question, Mark it Solved 
     
    If my answer helped resolve your issue, please consider marking it as solved to assist others facing the same problem. Additionally, giving it a like would be greatly appreciated and motivates us to keep helping
     
    Thank You
    Ravindra Jadhav

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard