Part – 2 Make Power Apps Ootb Form Control Responsive Using Containers Part – 2 Make Power Apps Ootb Form Control Responsive Using Containers
Joel Plaut

Joel Plaut

February 22, 2024

All Post
make-power-img
Share:

Follow these steps to set up the form responsiveness:

  1. Open the power apps and click on the setting.
  2. Go into the display settings and turn off the “Scale to fit” feature. Make sure that “Lock Orientation” and “Lock Aspect ratio” are disabled.

img-01

 

Responsive Form with Form controls.

Step 1: Click on the “Insert” icon and add the Text label property as shown in the below image. And Adjust label name according to the requirement and adjust the height and width of the label. Also changes the text as per the requirement.

 

img-02

img-03

Step 2: Create a new blank screen and insert a horizontal container onto the screen. Set the container’s height to match the previous specifications. In this method, the horizontal container is directly added as we’re utilizing Power Apps’ default form control.

  • Width:Width
  • Height:Height – Lbl_Screen_Header_1.Height

 

img-04

 

Step 3: Click on the “Insert” button and select the “Edit form” option, following the image reference provided. Ensure that you choose the Horizontal container and subsequently place the form inside this container.

 

img-05

 

Step 4: After adding the form and linking it with the data source, modify the form’s properties by setting the number of columns to 2 and choosing a horizontal layout. If you wish to omit certain fields or rearrange their order, access the “Edit fields” option located in the image below.

 

img-06

 

Step 5: Enabling the “Wrap” control for the form will result in the appearance depicted in the image below. This occurs due to the form’s minimum height being set to 250. To utilize the entire form space, a formula can be applied.

 

img-07

 

Step 6: Let’s incorporate the logic for the form’s minimum height by including the specified height within the formula provided below.

  • LayoutMinHeight: Parent.Height

 

img-08

 

Step 7: Upon minimizing the browser window, observe how all controls automatically adapt and adjust according to the screen size, ensuring optimal responsiveness.

 

img-09

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *

Want to talk?

Drop us a line. We are here to answer your questions 24*7.