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 / PowerApps SP Forms & S...
Power Apps
Answered

PowerApps SP Forms & ScreenSize?

(0) ShareShare
ReportReport
Posted on by 482

Hey there


In PowerApps SharePoint Forms I want to determine the current ScreenSize. Ideally, on opening the form, I'd like to make the app responsive or at least show a hint for mobile users to use the corresponding app.

So far I couldn't figure out on how to do that. 

 

Does anyone know how to achieve this, or, if this is ever going to be released & when?

If its possible with a hack, I'd be happy to know that too.

 

Kind regards,

Categories:
I have the same question (0)
  • v-yutliu-msft Profile Picture
    on at

    Hi @mrQ ,

    Do you want to change sharepoint custom form's screen size?

    Actually, you could set this when you designing this custom form.

    File->settings->screen size

    515.PNG

     

    What's more, what do you mean "show a hint for mobile users to use the corresponding app."?

    If you want to show a notify about telling user that he is using custom form, you could set the SharePointIntegration's

    Onview/onedit/onew to :

    Notify("you are using sharepoint custom form",NotificationType.Information)

     

     

    Best regards,

     

  • mrQ Profile Picture
    482 on at

    Hey there

     

    Thanks for your response.

    My mistake, it appears I was unclear.

     

    I want the screen size to be adjusted to the endusers device. On canvas apps, I can do that with "ScreenSize" where I got values like

    • 1 - Mobile
    • 2 - Tablet Horizontal
    • 3 - Tablet Vertical
    • 4 - Desktop

     

    On SharePoint Forms, this doesn't work. I know that I can change the apps orientation and size manually, but since I want to build my forms responsive, this wouldn't be adjusted if someone is accessing the SharePoint list on a mobile device.

     

    With "show a hint for mobile users to use the corresponding app." I simply meant that in case I cannot do it responsive as I want, at least I'd like to have some kind of detection of the screen size so I can notify mobile (small screen size-) users about it and, perhaps, refer him to use it either on desktop or, in case we've built a mobile app for that particular list, use that one. 

     

    Simply put:

    Is there a way to detect the screen size on PowerApps SharePoint forms?

     

     

  • v-yutliu-msft Profile Picture
    on at

    Hi @mrQ ,

    Do you want to change the sharepoint custom form's screen size and direction dynamically just like in canvas app?

    I'm afraid it's not supported to do this in  sharepoint custom form.

    Since  sharepoint custom form is just a form, not all feathers of canvas standalone app are supported here.

    In  sharepoint custom form, you could only set a stable settings here:

    519004.PNG

     

    The options in canvas standalone app are not supported: scale to fit, lock aspect ratio, lock orientation.

     

    You could post your idea here to ask for adding this feather in sharepoint custom form:

    https://powerusers.microsoft.com/t5/Ideas/ct-p/PA_Comm_Ideas

    Others who have the same idea will vote for you.

     

     

    Best regards,

  • mrQ Profile Picture
    482 on at

    hi @v-yutliu-msft 

     

    Thanks. That's what I suspected.

    It's quite unfortunate, given that PowerApps is supposed to be the "mobile-solution", while when using it with SP Forms it's not mobile friendly at all.

     

    Is there any other way to detect if a form is being viewed via a mobile device in SP forms?

  • Verified answer
    v-yutliu-msft Profile Picture
    on at

    Hi @mrQ ,

    I'm afraid there's no very good way.

    Powerapps' "mobile-solution" is against powerapps standalone app, not sharepoint custom form.

    For powerapps standalone app,, the feather that you want is supported.

    For sharepoint custom form, many feathers are not supported. After all, that's just a form, not an app. 

     

     

    Best regards,

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard