
Announcements
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.
But when create a new item, even they are invisible, but still occupy the space in the form, leaving 3 blank spaces.
How can I avoid this.
@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.