Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Suggested answer

Hiding Mulitple Data Cards in one place

(2) ShareShare
ReportReport
Posted on by 365
I am creating an app that has about 100 to 150 Fields. I want to show / hide big section of fields when a value is true or false. I there a good place to put all the code in on the screen to do this, I would like to avoid setting everything individually. 
 
For Example:
 
if 1 is true:
Show, a,b,c & Hide D,E,F,G
 
if 2 is true:
Show DEFG, Hide ABC
 
etc........
 
I have thought about putting it in the save button but that won't be dynamic. 
Categories:
  • Trout19 Profile Picture
    365 on at
    Hiding Mulitple Data Cards in one place
    I am using form DataCard's that I don't think I can group together, but I may try containers.
  • Suggested answer
    HaythemELAZHAR Profile Picture
    16 on at
    Hiding Mulitple Data Cards in one place
    1. You need to create your own form (you need to place the controls directly on the screen and you need a submit button to send you data) beacause i don't think you can group conrols inside a form and you can't add a container also.
    2. Define your logic for example when you click the submit button you affect true to a variable or when a control is populated
    3. You can group all the controls that you want to hide
    4. Click on the group or the container that contains the controls, select the visible property and put the variable that you created.
    If  you need to show or hide the controls alternatively you need to set a variable like that 
    Set(varShow;!varShow)
    Please mark as the answer if this helped you
  • Suggested answer
    Michael E. Gernaey Profile Picture
    41,002 Super User 2025 Season 1 on at
    Hiding Mulitple Data Cards in one place
    Hi
     
    Unless you group things together and or put them in containers, you cannot just "generally" tell things to be seen or not seen.
     
    You have to know in advanced which things go together. Then group them, put them in a container together, then make the container invisible or visible and bingo you have a lot less places to put the code versus each one as you want to avoid.
     
    Please mark as the answer if this helped you

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,635 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard