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 / Select specific galler...
Power Apps
Answered

Select specific gallery item

(0) ShareShare
ReportReport
Posted on by 817

Hi all, I have the following questions. I have a tab menu that shows the specific form when selected.

The problem is that when a user open the screen where this tab menu is located, by default doesn't show anything because there is no tab selected.

Capture.PNG

Capture.PNG

On select of the button what is happening is that I'm setting a variable which tab is selected

Set(varTabSelected,ThisItem.ID)

My gallery items are:

Table({ID:1,Label:"HR details"},{ID:2,Label:"Manager input"},{ID:3,Label:"Complete record"},{ID:4,Label:"Attachments"})

How can i make by default (or based on If condition) to have a specific gallery item selected?

 

Regards,

Kiril

Categories:
  • Verified answer
    NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    Hi @Radoslavov ,
    On AppStart property you can set the variable - 

    Set(varTabSelected, 1) 

    NandiniBhagya20_0-1668089568862.png

     

  • TylerPA Profile Picture
    201 on at

    Are you just trying to update the tabs, to show which page you are on?

     

    Conditionally setup 'Fill' or 'DisplayMode' for the button

     

    If(ThisItem.ID=varTabSelected, trueColor, falseColor)

    or If(ThisItem.ID=varTabSelected, DisplayMode.Disabled, DisplayMode.Edit)

     

    If you have several forms on the same screen, and you are just trying to display the appropriate one, set Visible property of the forms based on the ID you need for it (If(varTabSelected="x", true, false)

     

    Unless there is another functionality you are trying to get out of it?

  • Radoslavov Profile Picture
    817 on at

    @NandiniBhagya20 that did the magic, along with If on app start I set varTabSelected to the specific tab, Thank you for the quick solution 😊

     

    Regards,

    Kiril

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 234 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
timl Profile Picture

timl 122 Super User 2026 Season 2

Last 30 days Overall leaderboard