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 / Responsive form based ...
Power Apps
Answered

Responsive form based on screen size

(0) ShareShare
ReportReport
Posted on by 825

Hi All, 

I wanted to make a form responsive such that width of the form changes according to the size of the screen however i tried some of the things on the width formula of form but seems like it does not work for me 

 

If(ScreenSize >= 850, Max(App.Width)/2, Max(App.Width)/1)

 

If(Parent.Width = 640 || 750 ||850 , Max(App.Width)/1, Max(App.Width)/2)


the result is no change is form width in real time , 

 

can anyone help what m i missing here. 

Thanks 

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    68,707 Most Valuable Professional on at

    Take a look at the following article on Responsive Design in Power Apps.  It has all the information you need.  There are some settings that you need to disable in order to change the size of the form to match the Height and Width of the screen.  Please Note: this only works in a Browser if you set the browser to Full Screen.  Otherwise even with Responsive Design in place it will fit the screen into the visible window in the Browser and then scale the width.  But it will work in both the mobile and desktop clients.

    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/create-responsive-layout

  • Tapesh Profile Picture
    825 on at

    Hi @Pstork1 

     

    Thanks for the solution, but i actually have looked into this document earlier and also was following the same thing, but the major issue is with screen size, while i put 

    (if (ScreenSize = Small || 1, Parent.Width = 640, Parent.Width = 1200)) the formula seems to be correct but there are no results on the screen when i publish and check using web link which i guess i opens up in browser. 


    Is there anything else you can help with ?

    Thanks for the reply.

  • Verified answer
    Pstork1 Profile Picture
    68,707 Most Valuable Professional on at

    Where are you putting that formula?  First, you can't adjust the Parent properties from inside another control.  Nor can you set the value of a property from a formula.  The If statement should be in the width and height properties of the parent control itself. so something like this in the Width of the parent control

    Switch(Screen1.Size,
     ScreenSize.Small, 640,
     ScreenSize.Medium, 1000,
     ScreenSize.Large, 1200,
     1600)

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 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard