Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: Display number of questions depending on device/browser

Display number of questions depending on device/browser 2 years 9 months ago #101059

  • tammo
  • tammo's Avatar
  • Offline
  • Premium Lime
  • Posts: 325
  • Thank you received: 58
  • Karma: 16
Curently the questionnaire displays a num=ber of questions according to what you, as the designer, decides: all in one, group by group or one by one.

We have come in a situation where people will use many different devices: large screens to small mobile screens.

Some designers use the help of scripts that find out what device/browser you are using and after that the software may behave differently.

I could think of the following two examples:
  1. If people open a questionnaire on a big (define big) screen the questionnaire serves the questions group by group, but when a user opens the questionnaire on a small screen (mobile phone), the questionnaire serves the questions one by one.
  2. On a big screen all questions are served, on a mobile screen, some questions are not shown. I specifically think about the ranking question, which is OK on a big screen, but becomes a mess on a small screen.

Any thoughts on this?

Tammo ter Hark
Tools for Research
Haarlem/Amsterdam, The Netherlands
The administrator has disabled public write access.

Display number of questions depending on device/browser 2 years 9 months ago #101067

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5063
  • Thank you received: 749
  • Karma: 227
I don't think this is possible in Limesurvey, at least not without a major change in source code, because as you said, you define the display mode in the back end.

Personally I think the best way to show a questionnaire is usually question by question anyway.

One thing that could make sense is not showing certain questions due to the type of device (but then how do you analyze the survey, this is gonna be a mess in consistency). What might be a solution is to have a script, that reads the type of device and writes it into a hidden question. Based on this hidden question you can use conditions to hide certain questions.
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.

Display number of questions depending on device/browser 2 years 9 months ago #101086

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6139
  • Thank you received: 1363
  • Karma: 535
holch is correct - you cannot manipulate a single survey this way.

I would use 2 (several?) surveys. The respondent could be sent to a remote PHP file that could detect user agent and redirect to the "mobile" or "desktop" survey.
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The administrator has disabled public write access.

Display number of questions depending on device/browser 2 years 9 months ago #101089

  • Ben_V
  • Ben_V's Avatar
  • Offline
  • Platinum Lime
  • Posts: 1798
  • Thank you received: 440
  • Karma: 110
What might be a solution is to have a script, that reads the type of device and writes it into a hidden question.

Yes! and there is an old related post about this here ;)
Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
All LS releases => bit.ly/1VMuTDu | 2.06lts => bit.ly/1Qv44A1
Demo surveys => bit.ly/20NW9V8 (already included in /docs/demosurveys)
The administrator has disabled public write access.

Display number of questions depending on device/browser 8 months 2 weeks ago #128420

  • delfin
  • delfin's Avatar
  • Offline
  • Junior Lime
  • Posts: 31
  • Karma: 0
Guys Actually I find the performance on the ranking question less than optimal even in laptops. It's to hard to drag and drop. You need to be too exact. I've used other drag and drops that are more... I 'm not sure if the term is responsive or less strict but are easier to use. Probably it's worth taking a look at how this option performs. Lime survey is the only survey platform I found with this Question type which is awsome. But the performance or trying to answer it can be a pain. Specially if you have several subquestions or answers like my survey.
Attachments:
The administrator has disabled public write access.

Display number of questions depending on device/browser 8 months 2 weeks ago #128429

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9293
  • Thank you received: 1327
  • Karma: 384
Hi,

No solution for question By question / Group by group mode (but have some css/js to show one question with a group by group view)

For question condition : in the @todo list of git.framasoft.org/SondagePro-LimeSurvey-...erAgentInfo.php#L177
Assistance on LimeSurvey forum and LimeSurvey core developpement are on my free time (Say thanks ?).
A bug not reported is a bug not corrected. | Please, read the documentation | La doc en français à besoin de vous
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.232 seconds
Imprint                   Data Protection Statement                  Revocation information and revocation form