- Posts: 5070
- Thank you received: 1263
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Is Limesurvey able to detect the used device?
- jelo
- Offline
- Platinum Member
Not sure what he is working on. Expanding the plugin.I guess that what Denis is working on will be more robust.
The typical approach of other survey tools is to provide a function to the logic (e.g IsMoble).
The feature request for LimeSurvey would be to add a ExpressionScript function IsMobile.
Personally I would like to see a more flexible function, since the definition of what a mobile vs. desktop view is, can differ over time.
It's often only about the viewport and screen. A notebook often has a lower resolution than a smartphone. So a function in ExpressionScript with a viewport/screen estate check (e.g Width/Height).
You still have the JavaScriptcode somewhere. Perhaps a flexible approach would be to have a variable screen, where you could define not only URL mapping, but could enter JavaScript or predefined scripts and assign them to a variable.
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Please Log in to join the conversation.
- DenisChenu
- Offline
- LimeSurvey Community Team
- Posts: 13935
- Thank you received: 2551
Possible in 4.X via plugin, not before (sample : github.com/LimeSurvey/LimeSurvey/tree/ma...expressionFixedDbVar )The typical approach of other survey tools is to provide a function to the logic (e.g IsMoble).
The feature request for LimeSurvey would be to add a ExpressionScript function IsMobile.
Before : to have a value in ExpressionManager : you need a question.
Currently : i update Browser + add isMobile and isTablet optionnal question code globally.
I didn't make a question settings for this. Because current one work on 3.X and in 4.X and after : better to have new variables like you say : isMobile etc …
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Please Log in to join the conversation.
- jelo
- Offline
- Platinum Member
- Posts: 5070
- Thank you received: 1263
www.mydevice.io/#compare-devices can help.
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Please Log in to join the conversation.
- tammo
- Offline
- Official LimeSurvey Partner
- Posts: 963
- Thank you received: 217
Could you please explain what you mean here? I do not understand. Trying hard...You still have the JavaScriptcode somewhere. Perhaps a flexible approach would be to have a variable screen, where you could define not only URL mapping, but could enter JavaScript or predefined scripts and assign them to a variable.
Tammo
Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
Please Log in to join the conversation.
- jelo
- Offline
- Platinum Member
- Posts: 5070
- Thank you received: 1263
To prevent further confusion let's wait till you have the "more robust" approach at your fingertips and then compare the different solutions.
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Please Log in to join the conversation.
- DenisChenu
- Offline
- LimeSurvey Community Team
- Posts: 13935
- Thank you received: 2551
But with a PHP solution : you can (i think ) have whole group separation, use variable in 1st page etc …
About a variable for screen size : you mean the real screen size or the current screen size.
And with zoom or without zoom ?
etc etc …
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Please Log in to join the conversation.
- DenisChenu
- Offline
- LimeSurvey Community Team
- Posts: 13935
- Thank you received: 2551
gitlab.com/SondagesPro/QuestionSettingsType/findUserAgentInfo
(need to create a plugin topic here)
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Please Log in to join the conversation.
- tpartner
- Offline
- LimeSurvey Community Team
- Posts: 10630
- Thank you received: 3696
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Please Log in to join the conversation.
- Surveylab_KN
- Offline
- Junior Member
- Posts: 28
- Thank you received: 0
this is a very nice solution to save the information about the device. Unfortunately, I am not able to adapt your adaptions for the multiple short text question (the one with the long free text works fine). I used a multiple short text question, replaced the part of the code and added 3 subquestions. But the text fields are still empty. Do I need to change something else.
I am using Version 5.2.10+220118.
Please Log in to join the conversation.
- tammo
- Offline
- Official LimeSurvey Partner
- Posts: 963
- Thank you received: 217
Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
Please Log in to join the conversation.
- Masalas
- Offline
- Junior Member
- Posts: 33
- Thank you received: 0
Looks like this:
Please Log in to join the conversation.
- jelo
- Offline
- Platinum Member
- Posts: 5070
- Thank you received: 1263
Please provide a LSS export. Not sure anyone will retype your JS from an image to check it.Can anyone please check whether this is still working for him/her?
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Please Log in to join the conversation.