cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

how to hide and visible control on form

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

 

2 REPLIES 2
Highlighted
Super User
Super User

Re: how to hide and visible control on form

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.

 

Highlighted
Super User
Super User

Re: how to hide and visible control on form

@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."

 

Helpful resources

Announcements
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,215)