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 / Issue Controlling Gall...
Power Apps
Unanswered

Issue Controlling Gallery Visibility

(0) ShareShare
ReportReport
Posted on by

Hi All,

 

I am struggling with figuring the following out. Any help would be very appreciated!

 

I have this app screen that mainly consists of 2 Galleries, one for grouping and the other holds the items. the visibility of the gallery that holds the items depends on the value of Checkbox that I am checking by clicking the arrows next to any of the tiles (The green ones). My question here is how can I make the gallery also invisible when any of the items is selected and the details of item screen is accessed. So at the end of the day when I click any of the items and then click back icon I should found the gallery invisible in other words uncheck the checkbox.

 

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

    Hi @Anonymous 

    I am not sure how to answer your question but I wanted to point out that your choice of colors will be a problem for people with red/green color blindness. (Approximately 8% of the male population and 1/200 females or 300 million people worldwide). 

  • Community Power Platform Member Profile Picture
    on at

    Hi @Drrickryp 

    Ohh, will try to consider that. Thanks for the heads up!

    Feel free for fuurther questions to clarify any ambiguity. Thanks

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    The way to control the visibility of controls on a single screen is usually done by setting a context variable (in this example the context variable is called "var" but it could be any text) as true or false and then using that context variable as the Visibility property of the control.  Context variables only work for one screen.

     

     

     

    UpdateContext({var:true}) or as a toggle 
    UpdateContext({var:!var})

     

     

     

    Either of these formulas can be put in a button, icon or checkbox and whole groups of controls can be hidden by using "var" as the Visibility property of the control.  This includes galleries, data tables and forms as well as single controls like textinput boxes and labels .  By setting a context variable in the OnVisible property of the screen, then a default appearance of the screen is created..  If the goal is to control the visibility of controls on all screens throughout the app, then a global variable is created the Set() function is used.  ie. Set(var1, true) .  If context variables and global variables are used in the same app, then the variable name for each must be different.  Note that the context variable requires curly braces and ":" while Set() only requires a comma between the variable and its value)

  • Community Power Platform Member Profile Picture
    on at

    Thanks for your reply @Drrickryp 

     

    I understand this concept, the issue is that the visibility of the gallery is already controlled by the Checkbox.Value while I want to keep doing. I want also to be able to make the gallery disappear once I go back from the selected item detail screen

  • Office365Master Profile Picture
    338 on at

    Very interesting insight @Drrickryp .

     

    I myself have never actually considered the use of certain colors in particular green with a "lot" of apps I've developed and equally blogs I've posted. Given that quite clearly you have some experience with this, would you mind having a look at a blog I published a few days ago and share your thoughts in particular with the use of green I primarily use in many of the apps I showcase on my own blog site?

     

    https://masteroffice365.com/media-service-metadata-part-1/

     

    I really would appreciate any feedback insofar as whether or not I should reconsider the use of my own use of green in my CI as it relates to people with color blindness 😳.

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Office365Master 

    I don’t want to hijack this thread but please check https://www.secretstache.com/blog/designing-for-color-blind-users/  for information and here for UI testers https://ux.stackexchange.com/questions/71/what-are-good-resources-for-testing-ui-design-for-color-blind-users 

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard