How To Build Responsive Power Apps Forms From Scratch (2024)

Power Apps using a responsive design look amazing on all devices whether they are on computer, a tablet or a phone. They are made possible by responsive containers. When a screen changes size, the responsive container also re-sizes itself and tell the controls inside of them their new position in the app layout. To demonstrate how to build responsive Power Apps I have come up with a tutorial where you will build a simple form form scratch.

Table of Contents• Introduction: The Safety Incident Report AppEnable Responsive Design In The Power Apps Settings MenuInsert The Main Responsive Container And Make It Fit The ScreenAdd The Responsive Form Container And Limit Its Maximum WidthCreate The Responsive Form HeaderSetup The Responsive Form Body ContainerAdd A Text Input Field To The Responsive Form ContainerInsert A Date Picker Field Into The Responsive Form ContainerAdd The Remaining Questions To The Responsive Form ContainerPosition The Responsive Form Top And Bottom GuttersTest The Power Apps Responsive Form

Introduction: The Safety Incident Report App

Workers at a construction company use the Safety Incident Report app to submit details about Heath & Safety incidents. The responsive app changes its user interface to fit any screen size.

How To Build Responsive Power Apps Forms From Scratch (1)

The form can also floats on top of a background image and can scroll up-and-down.

How To Build Responsive Power Apps Forms From Scratch (2)

Enable Responsive Design In The Power Apps Settings Menu

Open Power Apps and create a new app from blank. Open the settings menu and navigate to the display tab. Turn off the Scale to Fit option. Now the screen will expand to fill the browser window at any size.

How To Build Responsive Power Apps Forms From Scratch (3)

Insert The Main Responsive Container And Make It Fit The Screen

Go to the Media menu and upload the construction blueprint background image.

How To Build Responsive Power Apps Forms From Scratch (4)

Select the screen and use the construction blueprint image as the BackgroundImage. Set the ImagePosition property to Fill.

BackgroundImage: constructionsImagePosition: ImagePosition.Fill

Add a vertical container to the screen named con_SIR_Main.

How To Build Responsive Power Apps Forms From Scratch (5)

Make the container cover the entire screen using these values in its properties.

Height: App.HeightWidth: App.WidthX: 0Y: 0

Set the LayoutJustifyContent property to Top, the LayoutAlignContent property to Center, and the LayoutOverflowY (Vertical Overflow) property to Scroll.

How To Build Responsive Power Apps Forms From Scratch (6)

Add The Responsive Form Container And Limit Its Maximum Width

The Safety Incident Report form will float on top of the background image and always remain centered. Add a vertical container named con_SIR_Form inside the container con_SIR_Main.

How To Build Responsive Power Apps Forms From Scratch (7)

Give the con_SIR_Form container these properties.

Fill: Color.WhiteHeight: 1000

Set the LayoutJustifyContent property to Top and the LayoutAlignContent property to Start.

How To Build Responsive Power Apps Forms From Scratch (8)

The form will fill the entire width of the screen on small and medium screens. But when the screen size is large or extra large we want the form to stop expanding and have gutters to appear on the left-and-right side of the form.

Use this code in the Width property of the con_SIR_Form container.

Min(Parent.Width, Index(App.SizeBreakpoints, 2).Value)

Create The Responsive Form Header

A solid colored header is displayed at the top of the form showing its title and description. Insert a new vertical container named con_SIR_FormHeader into the con_SIR_Form container.

How To Build Responsive Power Apps Forms From Scratch (9)

Use this code in the following properties of the con_SIR_FormHeader container.

Fill: RGBA(0, 120, 212, 1)Height: 120

Set the LayoutJustifyContent property to Top and the LayoutAlignContent property to Stretch and the AlignInContainer property to Stretch. Use the padding property values shown below.

How To Build Responsive Power Apps Forms From Scratch (10)

Insert two new labels into the con_SIR_FormHeader container.

How To Build Responsive Power Apps Forms From Scratch (11)

Write this code in the following properties of the top label.

Font: Font.'Lato Black'Size: 20Text: "Safety Incident Report"

Use this code in the following properties of the bottom label.

Font: Font.'Segoe UI'Size: 14Text: "When you mess up, fess up... 😅"

Setup The Responsive Form Body Container

Another container below the form header will hold the form’s fields. Place a new vertical container named con_SIR_FormBody inside the con_SIR_Form container.

How To Build Responsive Power Apps Forms From Scratch (12)

Use this code in the following properties of the con_SIR_FormBody container.

Color: Color.WhiteHeight: 1000

Set the LayoutJustifyContent property to Top and the LayoutAlignContent property to Start and the AlignInContainer property to Stretch. Use the padding property values shown below.

How To Build Responsive Power Apps Forms From Scratch (13)

Add a new button to the con_SIR_FormBody container with the text Submit.

How To Build Responsive Power Apps Forms From Scratch (14)

We want the con_SIR_FormBody container’s height to always be 40 pixels taller than the position of the submit button.

How To Build Responsive Power Apps Forms From Scratch (15)

Use this code in the Height property of the con_SIR_FormBody container.

btn_SIR_Submit.Y+btn_SIR_Submit.Height+40

We also want to ensure the con_SIR_Form container expands to the size of it’s child conatiners con_SIR_FormHeader and con_SIR_FormBody.

How To Build Responsive Power Apps Forms From Scratch (16)

Use this code in the Height property of the con_SIR_Form container.

con_SIR_FormBody.Height+con_SIR_FormHeader.Height

Add A Text Input Field To The Responsive Form Container

The first question on the form captures a response using a text input control. It will always stretch to fill the entire width of the form. Insert three new controls at the top of the con_SIR_FormBody container:

  • Label – lbl_SIR_QuestionTitle1
  • Text Input – txt_SIR_QuestionValue1
  • Label – lbl_SIR_Spacer1
How To Build Responsive Power Apps Forms From Scratch (17)

Use this code in the following properties of the title label called lbl_SIR_QuestionTitle1.

AlignInContainer: AlignInContainer.StretchFont: Font.'Segoe UI'Height: 60PaddingTop: 20PaddingBottom: 5Size: 12Text: "1. Incident Location"

Set the AlignInContainer property to Stretch. Use the padding property values shown below.

How To Build Responsive Power Apps Forms From Scratch (18)

Write this code in the following properties of the text input txt_SIR_QuestionValue1.

AlignInContainer: AlignInContainer.StretchFont: Font.'Segoe UI'Height: 40Size: 12

Then use this code in lbl_SIR_Spacer1.

AlignInContainer: AlignInContainer.StretchHeight: 40

Insert A Date Picker Field Into The Responsive Form Container

The second question on the form receives a response using the date picker control. This datepicker will have a fixed width. Insert three new controls at the into the con_SIR_FormBody container:

  • Label – lbl_SIR_QuestionTitle2
  • Date Picker – txt_SIR_QuestionValue2
  • Label – lbl_SIR_Spacer2
How To Build Responsive Power Apps Forms From Scratch (19)

Use this code in the following properties of the title label called lbl_SIR_QuestionTitle2.

Font: Font.'Segoe UI'Height: 40PaddingTop: 20PaddingBottom: 5Size: 12Text: "2. Date Of Incident"

Write this code in the following properties of the text input txt_SIR_QuestionValue2.

AlignInContainer: AlignInContainer.LeftFont: Font.'Segoe UI'Height: 40Size: 12Width: 300

Then use this code in lbl_SIR_Spacer2.

AlignInContainer.StretchHeight: 40

Add The Remaining Questions To The Responsive Form Container

Question #3 in the form is setup exactly like Question #1 with a label, a text input and a label.

How To Build Responsive Power Apps Forms From Scratch (20)

Question #4 in the form is follows the same design as Question #2 having a label, a dropdown and a label.

How To Build Responsive Power Apps Forms From Scratch (21)

Set the Items property of the drp_SIR_QuestionValue3 dropdown control to this code.

[Blank(), "Yes", "No"]

The final question #5 has the same elements as Question #1 but it a multi-line text field.

How To Build Responsive Power Apps Forms From Scratch (22)

Use this code in the following properties of the txt_SIR_QuestionValue5 text input to change it from single line text to multiple lines of text.

Height: 120Mode: TextMode.MultiLine

Position The Responsive Form Top And Bottom Gutters

With all of the form input fields added there’s just one thing left to do. We want to gutters appear at the top and bottom of the responsive form so it does not touch the edges of the screen. Insert a new horizontal container named con_SIR_Header into the con_SIR_Main container.

How To Build Responsive Power Apps Forms From Scratch (23)

Use this code in the Height property of con_SIR_Header container.

40

The top gutter should only appear when the screen size is Large or Extra Large. Write this code in the Visible property of the con_SIR_Header container.

App.ActiveScreen.Size>=ScreenSize.Large

Add a new horizontal container named con_SIR_Footer into the con_SIR_Main container.

How To Build Responsive Power Apps Forms From Scratch (24)

Use this code in the Height property of con_SIR_Footer container.

40

The bottom gutter should only appear when the screen size is Large or Extra Large. Write this code in the Visible property of the con_SIR_Header container.

App.ActiveScreen.Size>=ScreenSize.Large

Test The Power Apps Responsive Form

Preview the responsive form to test it out. When the screen width expands and shrinks the form should change its size like this.

How To Build Responsive Power Apps Forms From Scratch (25)

The form should also float on top of the background and scroll like this.

How To Build Responsive Power Apps Forms From Scratch (26)

Did You Enjoy This Article? 😺

Subscribe to get new Power Apps articles sent to your inbox each week for FREE

Questions?

If you have any questions or feedback about How To Build Responsive Power Apps Forms From Scratch please leave a message in the comments section below. You can post using your email address and are not required to create an account to join the discussion.

How To Build Responsive Power Apps Forms From Scratch (2024)

FAQs

How to make a responsive form in Power Apps? ›

Enable Responsive Design In The Power Apps Settings Menu

Open Power Apps and create a new app from blank. Open the settings menu and navigate to the display tab. Turn off the Scale to Fit option. Now the screen will expand to fill the browser window at any size.

How to build responsive Power Apps, responsive layouts, tabs, galleries, and forms? ›

To build a responsive screen:
  1. Create a blank canvas app with Tablet layout.
  2. Select Settings > Display and disable Scale to fit, Lock aspect ratio, and Lock orientation and select Apply.
  3. Now from the Insert panes in the left sidebar, under Layout tab, select Horizontal container.
Dec 15, 2022

How to design a responsive app? ›

The best way to create a responsive layout is to use ConstraintLayout as the base layout for your UI. ConstraintLayout enables you to specify the position and size of each view according to spatial relationships with other views in the layout.

What are responsive forms? ›

What are Responsive Forms? Responsive forms automatically adjust their styles based on the size of the form user's display, making them usable on all device types: desktops, laptops, tablets, and phones.

Can you use Power Apps to create a form? ›

How to create or edit a main form. Sign in to Power Apps. Select Tables on the left navigation pane, select the table you want, and then select the Forms area. If the item isn't in the side panel pane, select …

What is responsive layout structure? ›

Responsive layout introduces a new syntax to indicate for what screen or window width an attribute must take effect. The @ screen-size specifier can be one of @SMALL , @MEDIUM , @LARGE . The interpretation of these abtract size qualifiers is done dynamically, depending on the device type and display area size/width.

What are the breakpoints in Power Apps? ›

Custom breakpoints

This property is a single-column table of numbers that indicate the width breakpoints that separate the named screen sizes: In an app created for tablet or web, the default value in the app's SizeBreakpoints property are [600, 900, 1200]. In an app created for phones, the value is [1200, 1800, 2400].

Which framework is used to create a responsive design? ›

Bootstrap. It's an extensible and powerful framework that comes with a front-end toolkit to build responsive websites. The modular and custom architecture built using SaaS allows developers to import the components required, and write CSS with maps, functions, variables, and others.

What is the best size for responsive design? ›

What is the best screen size to design for?
  • Design for desktop displays from 1280×720 through 1920×1080.
  • Design for mobile displays from 360×640 through 414×896.
  • Design for tablet displays from 601×962 through 1280×800.
  • Check Google Analytics and optimise for your target audience's most common resolution sizes.
Jul 28, 2023

What is an example of responsive design? ›

Dropbox. Dropbox's web page is the perfect example of how responsive UX design can dramatically alter user behavior when used on different screen sizes. It takes responsive design to the next level by displaying what looks like completely different web pages depending on your device.

How can I improve my Power Apps performance? ›

Load data fast
  1. Avoid directly populating a collection with large amounts of data. ...
  2. Consider avoiding calling Power Automate to populate a collection. ...
  3. Avoid using SaveData() and LoadData() as a full offline scenario. ...
  4. Use Explicit column selection. ...
  5. Use App. ...
  6. Use Concurrent. ...
  7. Use Enhanced performance for hidden controls.
Jan 5, 2024

Is Power Apps deprecated? ›

Starting in October 2023, the classic app, form, and view designers are deprecated, by default. This means that, by default, all model-driven apps, forms, and views only open via the modern designers.

How do I add a response to a form in power automate? ›

Create an automated workflow for Microsoft Forms
  1. Go to Microsoft Power Automate, select. ...
  2. Under Flow name, give your flow a name or one will be generated for you.
  3. In the search box under Choose your flow's trigger, type forms.
  4. In the search results, select When a new response is submitted, and then select Create.

How do I create a responsive section? ›

HTML Responsive Web Design
  1. Setting The Viewport. To create a responsive website, add the following <meta> tag to all your web pages: ...
  2. Responsive Images. ...
  3. Responsive Text Size. ...
  4. Media Queries. ...
  5. Responsive Web Page - Full Example. ...
  6. Responsive Web Design - Frameworks. ...
  7. Bootstrap.

How do I get power automate response in Power Apps? ›

Step 4 - Get a response from Power Automate to PowerApps
  1. At the end of the flow, add an action as “Respond to a PowerApps or flow” and click on Add an output.
  2. Choose the type of output. ...
  3. Enter the title for output. ...
  4. Get the response of flow in one variable. ...
  5. To show the response value, we can use labels, or text inputs, etc.
Sep 27, 2022

Top Articles
Labour Day in Germany in 2023 | Office Holidays
Microsoft Business Intelligence Solutions | ABCloudz
12 Rue Gotlib 21St Arrondissem*nt
Ucsf Ilab
Pr 127 Seat Map
Lamb Funeral Home Obituaries Columbus Ga
Baue Recent Obituaries
Poppers Goon
Atrium Attorney Portal
Friscolawnmowing
Craiglist Tulsa Ok
Weather Channel Quincy
Apryl Prose Wiki
Western Gold Gateway
Kitchen Exhaust Cleaning Companies Clearwater
The Courier from Waterloo, Iowa
Birmingham City Schools Clever Login
Cara In Creekmaw Code
Who are Yasmin Le Bon Parents? Meet Iradj Parvaneh and Patricia Parvaneh
Craigs List Duluth Mn
Lima Crime Stoppers
What Does FYP Mean on TikTok?
25+ Twitter Header Templates & Design Tips - Venngage
Atdhe Net
Showcameips
Dutchessravenna N Word
Craigslist Used Motorhomes For Sale By Owner
Adams County 911 Live Incident
0Gomovies To To
Iggy Azalea Talks Dancing Off Into the Sunset on Her Own Terms With ‘The End of an Era’
Remembering the names of those who died on 9/11
Hospice Thrift Store St Pete
Greenbrier Bunker Tour Coupon
Costco Gasoline and Sam's Club Fuel Center Gas Savings - Consumer Reports
Kirby D. Anthoney Now
Thomas E Schneider Jeopardy
Charter Spectrum Store
Top French Cities - Saint-Etienne at a glance
Deborah Clearbranch Psychologist Georgia
SYSTEMAX Software Development - PaintTool SAI
Sprague Brook Park Camping Reservations
Wie blocke ich einen Bot aus Boardman/USA - sellerforum.de
Uw Oshkosh Wrestling
Pre-Order Apple Watch Series 10 – Best Prices in Dubai, UAE
Infinity Pool Showtimes Near Maya Cinemas Bakersfield
Sxs Korde
102Km To Mph
Synergy Grand Rapids Public Schools
Saratoga Otb Results
Lanipopvip
Vizio 75 Inch Tv Weight
Kentucky TikTok: 12 content Bluegrass State creators to know
Latest Posts
Article information

Author: Lilliana Bartoletti

Last Updated:

Views: 6079

Rating: 4.2 / 5 (73 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Lilliana Bartoletti

Birthday: 1999-11-18

Address: 58866 Tricia Spurs, North Melvinberg, HI 91346-3774

Phone: +50616620367928

Job: Real-Estate Liaison

Hobby: Graffiti, Astronomy, Handball, Magic, Origami, Fashion, Foreign language learning

Introduction: My name is Lilliana Bartoletti, I am a adventurous, pleasant, shiny, beautiful, handsome, zealous, tasty person who loves writing and wants to share my knowledge and understanding with you.