Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Two gallerys, how to choose one is visible on the start of the apps URL?

(0) ShareShare
ReportReport
Posted on by 909 Super User 2024 Season 1

I have two gallerys.

 

One is opened by a button onSelect. The other I want to default to be open.

 

How can I ensure on the start of loading the app only the 1 certain gallery is shown?

 

Thanks.

  • Ami K Profile Picture
    15,665 Super User 2024 Season 1 on at
    Re: Two gallerys, how to choose one is visible on the start of the apps URL?

    @wonka1234 ,

     

    On the OnCheck property of the Toggle control, enter:

     

    Set(
     varGallery2Visible,
     true
    )

     

    On the OnUnCheck property of the Toggle control, enter:

     

    Set(
     varGallery2Visible,
     false
    )

     

    On the OnVisible property of the Screen, enter only:

     

    If(
     Toggle1.Value,
     Set(
     varGallery2Visible,
     true
     ),
     Set(
     varGallery2Visible,
     false
     )
    )

     

    On the Visible property of the Gallery, enter only:

     

    varGallery2Visible

     

    ------------------------------------------------------------------------------------------------------------------------------

     

    If I have answered your question, please mark your post as Solved. Remember, you can accept more than one post as a solution.

    If you like my response, please give it a Thumbs Up.

    Imran-Ami Khan

     

  • wonka1234 Profile Picture
    909 Super User 2024 Season 1 on at
    Re: Two gallerys, how to choose one is visible on the start of the apps URL?

    getting error on the browsegallery1 visible property - i want to hide this one.. i do have a button to h ide it.. but i just want to make sure the first thing seen isnt this screne..

     

    wonka1234_0-1694032457833.png

     

  • Ami K Profile Picture
    15,665 Super User 2024 Season 1 on at
    Re: Two gallerys, how to choose one is visible on the start of the apps URL?

    @wonka1234 -

     

    Use a Global Variable. For example on the OnVisible property of the Screen, enter: 

     

    Set(
     varGallery2Visible,
     false
    )

     

     

    On the Visible property of the Gallery you want to ensure is hidden, enter:

     

    varGallery2Visible

     

     

    ------------------------------------------------------------------------------------------------------------------------------

     

    If I have answered your question, please mark your post as Solved. Remember, you can accept more than one post as a solution.

    If you like my response, please give it a Thumbs Up.

    Imran-Ami Khan

     

     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,631 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,991 Most Valuable Professional

Leaderboard