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 / Open gallery without a...
Power Apps
Unanswered

Open gallery without an item selected

(2) ShareShare
ReportReport
Posted on by

I have a gallery on the left of the screen and a form on the right. When a user selects an item from the gallery on the left the selected item is shown on the right. This is working fine.

 

However when I first go to the screen there is always an item already selected from the gallery by default. It will be the last one showing on the developement screen.

 

How can I set the gallery to be unselected when it first opens so that the form starts blank (or not visible) until an item has been selected?

Categories:
I have the same question (0)
  • dinusc Profile Picture
    Microsoft Employee on at

    Hello @Anonymous,

    There's no way to have a gallery control in a state where none of the items are selected. You should be able to achieve the desired behavior though by setting the form in the "New Mode" by default and then switching it to "Edit Mode" on selecting an item from the gallery control.

  • Mike8 Profile Picture
    1,330 on at

    Hello,

    You can also try Gallery1.Default = {}

  • Community Power Platform Member Profile Picture
    on at

    Hi,

     

    I would recommend setting the Gallery's OnSelect to something like Set(selectedItem,ThisItem). 

     

    Then initialize selectedItem in your OnStart or the screen's OnVisible property to Blank() (e.g. Set(selectedItem,Blank()))

     

    Then set the form's Item value to selectedItem

     

    That usually works for me.

     

     

  • Verified answer
    v-xida-msft Profile Picture
    on at

    Hi @Anonymous,

    I have made a test on my side, please take a try with the following workaround:3.JPG

     

    4.JPG

    Set the OnSelect property of the Gallery control to following:

    Set(CurrentSelectedItem, ThisItem)

    Set the Item proeprty of the Display form control to following:

    CurrentSelectedItem

    Note: The Display form and the Galery connect to same data source.

     

    Best regards,

    Kris

  • ms-mac Profile Picture
    Microsoft Employee on at

    This worked! Thank you!

    ms-mac_0-1617759806261.png

     

  • stevenbaron86 Profile Picture
    41 on at

    This is the correct answer. The accepted solution is not right.

  • Community Power Platform Member Profile Picture
    on at

    perfect

  • sohan_h Profile Picture
    5 on at

    on the previous screen: add Reset(GalleryName)

    on Gallery View: Default add :  {}

     

  • glower power Profile Picture
    161 on at

    this worked great thanks

  • MS-13051438-0 Profile Picture
    30 on at

    That worked for me. Thanks @Mike8 

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard