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 / When make a control in...
Power Apps
Unanswered

When make a control invisible in canvas app, how to make its space taken by other visible control

(0) ShareShare
ReportReport
Posted on by

Hi Madam/Sir,

I have a canvas app, some controls set only visible when form mode is formmode.new, by input following code in visibility attributes.
If(SharePointForm1.Mode=FormMode.New, false, true)

In designer, my app looks like this, the 3 highlighted control set not visible when create new item.

Ryan_Zhang_0-1649388966123.png

But when create a new item, even they are invisible, but still occupy the space in the form, leaving 3 blank spaces.

Ryan_Zhang_1-1649389189535.png

How can I avoid this.

 

Categories:
I have the same question (0)
  • Verified answer
    EddieE Profile Picture
    4,641 Moderator on at

    @Anonymous 

    Welcome to Clunky PowerApps Form Design 101 🙂

     

    The way I'd solve this is to change my design slightly. 

     

    NOTE: Save your App before trying any of the following because once you start messing with Form design ... strange things happen .. and it looks like you have put some work into your form design that  you don't want to see disappear!

     

    Steps:

    1. Ensure Snap to Columns is ON and the form is in Edit Mode ie all cards showing

    2. Extend one of your first 3 DataCards over 2 columns. This should move Cutsheet&SOW received date to the next row

    3. Extend one of your 'to be hidden' DataCards over 2 columns. This should move Company to the next row

    4. Test

     

    You can also change the Visible properties of the hidden cards to this, ie no need for the If(..) statement

    SharePointForm1.Mode=FormMode.Edit

    .. this is up to you.

     

    If extending 2 cards doesn't work for you, then you could add a Custom card to your form. Put this in the first row where your current first hidden card sits and set it's height to the same as the other cards on that row and Visibility to 'false'. Then do the same for the next row.

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