web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / 3 Galleries, 3 Forms -...
Power Apps
Unanswered

3 Galleries, 3 Forms - Show/Hide Forms if a Gallery is Selected

(0) ShareShare
ReportReport
Posted on by

Hello all,

 

I have 3 different galleries and 3 different forms - normally I would just create 6 screens so they would pair up, but I have two screens instead, one screen with the 3 galleries and one screen with the 3 forms. My question is, is it possible to hide forms if the gallery item that was selected wasn't for the form?

 

Applications_0-1666116058855.png

 

Here are the three galleries

 

Applications_1-1666116118746.png

 

Here are the three forms - but I would like to make them all full screen for ease of reading for the user, but that's where I'm stuck - how do I hide the forms if they werent selected on the gallery screen?

 

Any thoughts? Thank you!

Categories:
I have the same question (0)
  • Verified answer
    RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at
    Re: 3 Galleries, 3 Forms - Show/Hide Forms if a Gallery is Selected

    @Applications 

    Sure, you can base this all off of the selection.  You will want to utilize a variable.

     

    So for example, in Gallery1, on the right arrow icon OnSelect.  Set the formula to:

        Set(glbForm1Item, ThisItem)

    And on the second gallery icon:

        Set(glbForm2Item, ThisItem)

    etc...

     

    Then in the Form for gallery 1, set the Visible property to: !IsBlank(glbForm1Item) and set the Item property to: glbForm1Item

     

    If your next step in the process is to submit the form, then in the OnSuccess action of your Form set the variable to blank. Example in the Form1 OnSuccess action:  Set(glbForm1Item, Blank())

    This will hide the form and keep from having conflicts in the visibility.

     

    I hope this is helpful for you.

     

  • Applications Profile Picture
    on at
    Re: 3 Galleries, 3 Forms - Show/Hide Forms if a Gallery is Selected

    Perfect, thank you so much!

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 231 Super User 2025 Season 2

Last 30 days Overall leaderboard