IsMobileDevice
-
- Posts: 4
- Joined: Fri Oct 09, 2015
- Contact:
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
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
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.
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.
-
- Posts: 4
- Joined: Fri Oct 09, 2015
- Contact:
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?
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?
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
Hi Sebastian,
IsMobileDevice, IsTabletDevice, and UserAgent are not functions, they are values. So, please, use them without parantheses, like this:
IsMobileDevice, IsTabletDevice, and UserAgent are not functions, they are values. So, please, use them without parantheses, like this:
Code: Select all
IsMobileDevice == true
-
- Posts: 4
- Joined: Fri Oct 09, 2015
- Contact:
I tried with "IsMobileDevice == true" but when i do click on "validate" button the formula, show me message: "Invalid parameter 'IsMobileDevice"
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
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.
-
- Posts: 4
- Joined: Fri Oct 09, 2015
- Contact:
Please, let me how know my version for spform, and please paste me the link download for last version spform
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
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
http://spform.com/download
-
- Information
-
Who is online
Users browsing this forum: No registered users and 17 guests