IsMobileDevice

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
Sebastian Fernandez
Posts: 4
Joined: Fri Oct 09, 2015
Contact:

09 Oct 2015

hello,

I wonder what criteria used for the function: isMobileDevice, since tried using a "form based on condition". I accessing from a mobile phone and did not open the correct form

User avatar
rostislav
Moderator
Posts: 364
Joined: Mon Oct 19, 2015

09 Oct 2015

We use a slightly modified version of this script http://detectmobilebrowsers.com/.

Which is basically a really long regular expression used on the browser's user agent string. It's not 100% proof, but it gives a good chance of detection. There isn't really any other way than this.

Sebastian Fernandez
Posts: 4
Joined: Fri Oct 09, 2015
Contact:

09 Oct 2015

While the web is you provided me, if I enter my mobile phone tells me: "mobile browser detected", and from my laptop "NO mobile browser detected".

I added a new group of view form, provided: isMobileDevice () == true, but it continues to open the default form. the syntax is correct the condition?

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

10 Oct 2015

Hi Sebastian,

IsMobileDevice, IsTabletDevice, and UserAgent are not functions, they are values. So, please, use them without parantheses, like this:

Code: Select all

IsMobileDevice == true

Sebastian Fernandez
Posts: 4
Joined: Fri Oct 09, 2015
Contact:

13 Oct 2015

I tried with "IsMobileDevice == true" but when i do click on "validate" button the formula, show me message: "Invalid parameter 'IsMobileDevice"

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

13 Oct 2015

Please, ensure that you have installed the latest version of Forms Designer (3.0.4). You can download it from our website. Please, note that after upgrading, you will need to re-activate Forms Designer feature at the site collection level and re-save all form in the new version of Forms Designer.

Sebastian Fernandez
Posts: 4
Joined: Fri Oct 09, 2015
Contact:

13 Oct 2015

Please, let me how know my version for spform, and please paste me the link download for last version spform

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

13 Oct 2015

You can find the currently installed version in the lower-right corner of Forms Designer. Download the latest version from our website:

http://spform.com/download

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 17 guests