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 / How to set default ite...
Power Apps
Answered

How to set default item in a Gallery? or default selected item on a gallery?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi guys how do you set a default item in gallery?

I am getting the error shown below in the picture QA.png

Categories:
I have the same question (0)
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    Hi @Anonymous 

    There is a pretty good thread about the Default property of galleries:  Gallery-set-default-selection-to-first-item as well as some suggestions regarding how to work with this property. 

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

    Hi @Anonymous ,

    Do you want to set a gallery's default selected item?

    You need to set the gallery's Default to one record belongs the gallery's Items table.

    Could you tell me

    1)the formula in your gallery's Items property?

    2)"Cap" is which field in the Items table? the field's data type?

     

    I've made a similar test for your reference:

    1)set the gallery's Items:

    ["Cap","Pop"]

    //It is actually a table with a column named Value.

    2)set the gallery's Default:

    {Value:"Cap"}

    This represents the record with value "Cap".

    Then your gallery's default selected item will be the one with Cap value.

    32020.PNG

     

    Here's a doc about Gallery control, please notice the define of Default property:
    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/controls/control-gallery

     

     

     

    Best regards,

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 839

#2
Valantis Profile Picture

Valantis 533

#3
Haque Profile Picture

Haque 412

Last 30 days Overall leaderboard