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 / I want the gallery not...
Power Apps
Answered

I want the gallery not to have a selected item when App is starting

(0) ShareShare
ReportReport
Posted on by

Hi Experts, 

 

I am moving towards the end by learning a lot from you. Thank you again, Thank you MS for taking this community initiative. As you can see from below image there is an item always selected when I open the app. But I want not to have a selected item when the app is loading. Is it possible?

 

Osmand

 

Capture.PNG

Categories:
  • SeanHenderson Profile Picture
    1,104 on at

    Hi @OsmandFernando 

    You are going to want the gallery and form to use a variable, which won't be set upon App Start, therefore nothing will be selected.

     

    So set the gallery's OnSelect property to something like:

    Set(varGallery, Gallery.Selected)

    and the Items property on your Form to:

    varGallery

     

    Let me know if that works.

    ---
    Please hit the "Accept as Solution" button if my post answered your question! If my post was helpful please consider giving it a "Thumbs Up."

  • OsmandFernando Profile Picture
    on at

    @SeanHenderson  thank you for your reply. But I do not have a form the buttons under each item in the gallery are groups (set of buttons). At the moment I have the following type of formula for each group, 

     

    If(Gallery7.Selected.Value="Master Data",true,false)

     

    Osmand

  • Verified answer
    v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @OsmandFernando ,

    The reason why you met this problem is that the gallery.selected is set to the first item by default. So even you haven't selected item, the gallery.selected means the first item.

    You could set the gallery's Default property to change the gallery's default selected item.

    When this property is blank, then the gallery's default selected item is the first item.

    Please set the gallery's Default to :   {}

    Then the the gallery's default selected item will be blank.

    12182.PNG

     

     

     

    Best regards,

  • OsmandFernando Profile Picture
    on at

    @v-yutliu-msft very simple and effective. Thank you so much, also thank you @SeanHenderson 

     

    I am done with m 1st ever app....yeyyyyyyy. 

     

    Osmand

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 339 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 289

#3
Mohsin Ali Profile Picture

Mohsin Ali 228

Last 30 days Overall leaderboard