Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Mobile version and Questions per page

  • AdaSimion
  • AdaSimion's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 5 months ago #190350 by AdaSimion
Mobile version and Questions per page was created by AdaSimion
The survey we created looks good when it's tested on a computer, but the array questions look very confusing on the mobile devices.

The array questions contain 4 sub questions with 9 answer options. For 5 of these answer options an image is attached below. On a computer, this appears as a table, with all sub questions one below the other.

I am attaching some screen shots to show how it looks on a mobile device.
It seems that the questions cannot really be distinguished from the sub questions.

Is there a way to edit the survey only for the mobile version?

I was considering making the images smaller for phones, but I wouldn't want that to apply to the desktop version.

Any other suggestions of how to change the design for the mobile version would be very helpful.


A different question I have is regarding the number of questions that can be shown per page.
I have no possibility of dividing them in separate groups, so that I can use the function to show them group by group.
This is not possible because there are a total of 100 questions in a group, all of which use a script so that only 25 of those, randomly selected, are visible to participants.

Instead of the participants seeing all 25 questions on a page, I would like them to be able to see 10, then another 10, then 5 on separate pages.

How would it be best to proceed in order to achieve this?


Thank you very much in advance for any suggestion.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 5 months ago #190352 by holch
Replied by holch on topic Mobile version and Questions per page
Array questions do not work well on small screens, which is why you should avoid them, when you have a lot of people responding on Mobile phones.

What the standard templates do is separating the subquestions of the array as if they were separate questions, this is the effect you are seeing.

There is no "page" concept in Limesurvey, thus you need to use the concept of the question group (in my opinion these should be rather logical, than layout groups) for displaying a certain amount of questions on one page.

You could always go for question by question display, then only one question would be shown per page (the best option for mobile in my opinion anyway).

However, regarding your "script": You can always to this with a work around.

For the 100 questions, create 4 question groups.

Group 1: 10 questions
Group 2: 10 questions
Group 3: 5 questions
Group 4: the rest (75 questions)

Give all questions the same "randomization group name" and then hide group 4.

What will happen? Limesurvey will randomly place the questions from 1-100 within the 100 positions that you have, spread over the 4 groups. As group 4 is hidden, respondents will always just see the first 25 positions, with 25 questions drawn out of the pool of 100.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The following user(s) said Thank You: AdaSimion
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 5 months ago #190353 by Joffm
Replied by Joffm on topic Mobile version and Questions per page
To answer your first question:
This looks quite normal.
I see the question, the subquestion ("Valence") and then - one below the other - the answer options.
And after the last answer option there is the next subquestion ("Arousel").
So in fact you should try to redesign meaning the size of the pictures.

Furthermore you may check the screen size at the beginning of the survey and then route to the appropriate question layout for smartphones or desktops. (Meaning you have the question twice with different layouts).
Or you may include different images by micro-tayloring, like
{if(screensize<760,"<img src=' www.myServer/myPath/image_small.png'/ >","")}

Your second question:

This is not possible because there are a total of 100 questions in a group,

How many of these groups are there?
The "normal" way would be:
Create a group with the first ten questions, a group with the second ten, a group with the next 5 questions and a group with the rest. This last group is hidden by the relevance equation "0".
All questions get the same "randomization group name".
That's it.
Here a prototype that shows randomly 7 out of 12, 5 on the first page, 2 on the second.

File Attachment:

File Name: limesurvey...0-25.lss
File Size:23 KB


But, to be honest, I did not quite understand your design.

A different question I have is regarding the number of questions that can be shown per page.
I have no possibility of dividing them in separate groups, so that I can use the function to show them group by group.
This is not possible because there are a total of 100 questions in a group, all of which use a script so that only 25 of those, randomly selected, are visible to participants.


So, if I misunderstood something, send a small sample as LSS.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: AdaSimion
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 5 months ago #190355 by tpartner
Replied by tpartner on topic Mobile version and Questions per page
Regarding the images you can use CSS media queries to limit the image size on smaller screens or even show different images on smaller screens. When inserting images I almost always use two, depending on screen size - one with a "landscape" aspect ratio and one with a "portrait" aspect ratio.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: AdaSimion
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 5 months ago - 4 years 5 months ago #190364 by DenisChenu
Replied by DenisChenu on topic Mobile version and Questions per page

{if(screensize<760,"<img src=' www.myServer/myPath/image_small.png'/ >","")}

No :)

Regarding the images you can use CSS media queries to limit the image size

Best solution (in my opinion) : usage of boostrap utility class
Code:
<img class="visible-xs-block" src="/upload/survey/{SID}/littlescreen.jpg><img class="hidden-xs" src="/upload/survey/{SID}/bigscreen.jpg>

See getbootstrap.com/docs/3.3/css/#responsive-utilities-classes

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.
Last edit: 4 years 5 months ago by DenisChenu.
The following user(s) said Thank You: AdaSimion
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 5 months ago #190374 by Joffm
Replied by Joffm on topic Mobile version and Questions per page
Yes, true,
I nearly always forget these bootstrap classes.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • AdaSimion
  • AdaSimion's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 5 months ago #190375 by AdaSimion
Replied by AdaSimion on topic Mobile version and Questions per page
Thank you so much for all your responses! It is very much appreciated!
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose