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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Visibility of Containe...
Power Apps
Answered

Visibility of Container in Powerapps according to dropdown

(1) ShareShare
ReportReport
Posted on by 222
Hi,
 
I have 5 containers, Container1, Container2, Container3, Container4, Container5.  The visibility of the containers is controlled by a dropdown with values 1,2,3,4,5
If the user selects 1, then only Container1 will be displayed.
If the user selects 2, then Container 1 and Container 2 are displayed.
If the user selects 3, then Container 1, Container 2 and Container 3 are displayed, etc.
 
How do I change the Visible properties on each containers so the users see the following:
Kind regards
 
Rene Voller
Categories:
I have the same question (0)
  • Suggested answer
    Vish WR Profile Picture
    3,748 on at
    Hi Good Day 
     
    You can use this approch , i did a quick test and it works 
     
    Power Apps Step-by-Step (Dropdown → Container Visibility)
     
    Step 1: App OnStart
    Set(varStep, 0)
    Step 2: Dropdown1 Items
    [1,2,3,4,5]
     
    Step 3: Dropdown1 OnChange
    Set(varStep, Value(Dropdown1.Selected.Value))
     
    Step 4: Container Visibility Rules
     
    Container1 Visible:
    varStep = 1
     
    Container2 Visible:
    varStep = 2
     
    Container3 Visible:
    varStep = 3
     
    Container4 Visible:
    varStep = 4
     
    Step 5: Label (Optional)
    "Selected Number is : " & varStep
     
     
     
    Let me know if you want the working sample 
     
     
      Vishnu WR
     
    Please âœ… Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider answering Yes to Was this reply helpful? or give it a Like â™¥
     
     
     
  • RVoller Profile Picture
    222 on at
     
    Unfortunately, the code does not work.
    When selecting varStep=3, container 2 does not appear.
    The same applies to varStep=4, where container 2 and container 3 are not displayed.  
    How it should work:
    Dropdown Selection = 1, only show container 1
    Dropdown Selection = 2, show container 1 and 2
    Dropdown selection = 3, show container 1, 2 and 3
    Dropdown selection = 4, show container 1,2,3 and 4
     
    Kind regards
     
     
    Rene Voller
  • Verified answer
    11manish Profile Picture
    3,333 on at
    try below :
     
    Use This Formula for Visibility
    For each container:
    Container1.Visible
    • Value(Dropdown1.Selected.Value) >= 1
    Container2.Visible
    • Value(Dropdown1.Selected.Value) >= 2
    Container3.Visible
    • Value(Dropdown1.Selected.Value) >= 3
    Container4.Visible
    • Value(Dropdown1.Selected.Value) >= 4
    Container5.Visible
    • Value(Dropdown1.Selected.Value) >= 5
  • Vish WR Profile Picture
    3,748 on at
     
    Initially, I made my sample based on your requirement, which uses >= , then I thought u want to display only the selected container as per selection.
     
     
     
      Vishnu WR
     
    Please âœ… Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider answering Yes to Was this reply helpful? or give it a Like â™¥
     
     
     

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 424

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
11manish Profile Picture

11manish 290

Last 30 days Overall leaderboard