cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate II
Advocate II

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

Re: PowerApps SP Forms & ScreenSize?

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

Re: PowerApps SP Forms & ScreenSize?

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.
Highlighted
Advocate II
Advocate II

Re: PowerApps SP Forms & ScreenSize?

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?

 

 

Highlighted
Community Support
Community Support

Re: PowerApps SP Forms & ScreenSize?

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.
Highlighted
Advocate II
Advocate II

Re: PowerApps SP Forms & ScreenSize?

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?

Highlighted
Community Support
Community Support

Re: PowerApps SP Forms & ScreenSize?

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
Ignite

Microsoft Ignite

This will be a conference that you do not want to miss!

secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (6,058)