cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mrQ
Helper V
Helper V

PowerApps SP Forms & ScreenSize?

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,

1 ACCEPTED SOLUTION

Accepted Solutions
v-yutliu-msft
Community Support
Community Support

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,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
v-yutliu-msft
Community Support
Community Support

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,

 

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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
Community Support
Community Support

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,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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?

v-yutliu-msft
Community Support
Community Support

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,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza Winner Announcement

Please join us on Wednesday, July 21st at 8a PDT. We will be announcing the Winners of the Demo Extravaganza!

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,010)