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 / how to hide and visibl...
Power Apps
Unanswered

how to hide and visible control on form

(0) ShareShare
ReportReport
Posted on by 18

Hi,

i am developing questionnaire application in some case if user select Yes than i have to show some more Questions. Problem is that when i hide control by default and on user selection make them visible problem is that i m getting blank space at bottom.

 

pls guide what is proper way to make user user hide and visible based on user selection so that space issue get resolved.

 

Thx

 

Categories:
I have the same question (0)
  • eka24 Profile Picture
    20,925 on at

    Please can you give a screen shot. Is it a dropdown?

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

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

     

  • mdevaney Profile Picture
    29,991 Moderator on at

    @imughal 
    What I think you are saying is "when I hide a Card in my form it creates a blank space at the end of the form.  How do I remove it?"  The solution is to change the Width property of your form based on how many cards are Visible.

    Lets' say you have 4 cards in your form that are Visible to start.  Each card has a Height of 100.  The form Height is 400.

     

    Card 1
    Card2
    Card3
    Card4

     

    When you hide Card 3 there is blank space at the end of the form

     

    Card1
    Card2
    Card4
     

     

    The solution is to set the Height property of the form to this code.  It will adjust the height of the form when a card is hidden

    (
     If(Card1.Visible,1,0)
     +If(Card2.Visible,1,0)
     +If(Card3.Visible,1,0)
     +If(Card4.Visible,1,0)
    ) * 100

     

    The end result will have no extra space.

    Card1
    Card2
    Card4

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

     

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 404

#2
timl Profile Picture

timl 344 Super User 2026 Season 1

#3
WarrenBelz Profile Picture

WarrenBelz 320 Most Valuable Professional

Last 30 days Overall leaderboard