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

Can you add Containers to a Sharepoint Connected Form

My app has a form that is connected to a Sharepoint list. I am trying to add some responsive design to my form, but PowerApps will not let me me put a container inside the form. Is there no way to make a form responsive?

7 REPLIES 7
Pstork1
Dual Super User
Dual Super User

Forms are already somewhat responsive.  But no, you can't add a container inside a form.  You can add a container at the screen level and then put the form inside the container.  But I don't think that will really accomplish anything unless you plan to add multiple forms or controls inside the container.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Join me at 365EduCon in Chicago on Sept. 26-30 where I'll be presenting on the Power Platform!

What I want is to make certain parts of the form two columns on wider devices and one column on narrower screens.

I don't know of any way to change the number of columns.  But you can change the width of the data cards inside the form.  If you have two columns and a data card width covers both columns it will push the next data card Down and to the Left.  If the width of the Data Card is less than the column width it will stack them side by side.  So you do have some control of the layout without using containers.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Join me at 365EduCon in Chicago on Sept. 26-30 where I'll be presenting on the Power Platform!

I tried to do that. Basically set the form to two columns and set the two column items width to (Parent.Width)/2 and the items I want full with to Parent.Width.

 

However, when I started messing with that, I noticed this strange behavior I document here: https://powerusers.microsoft.com/t5/Building-Power-Apps/Possible-Bug-Formula-Bar-not-matching-proper...

 

The essentially the height value in the formula bar is different from the value I see in the properties tab. The properties tab is correct, but I cannot edit it in either place. If I change it in either place it just goes back to the old numbers.

In forms X, Y are calculated at runtime.  Thats why the numbers in the formula and the panel don't match.  You can adjust the height and width of data cards.  But the Data cards will then stack from the upper left across the columns and down the form based on the height and width of the cards.  You can't pin them to a specific X,Y coordinate.  Also, if you calculate the width values make sure you always round down to get them to align as you would expect them to.  Two data cards set for Parent.Width/2 may not end up side by side do to internal rounding unless you tell them to Round Down.  Padding can also be a factor.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Join me at 365EduCon in Chicago on Sept. 26-30 where I'll be presenting on the Power Platform!

So, essentially, inside a form control, I cannot position the DataCards where I want? There are lot of little things inside of Power Apps that I am learning as I go.

Forms are designed to flow the datacards based on available space.  In essence they are responsive by default.  So you can't specifically place them in a particular location.  You can change the size of the datacards to make them stack in a particular way.  For example, if you make a particular card cover the width of two columns then next card will wrap down to the start of the next row.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Join me at 365EduCon in Chicago on Sept. 26-30 where I'll be presenting on the Power Platform!

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (3,882)