Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:

THEMA: Display number of questions depending on device/browser

Display number of questions depending on device/browser 1 Jahr 5 Tage her #101059

  • tammo
  • tammos Avatar
  • OFFLINE
  • Junior Lime
  • Beiträge: 36
  • Dank erhalten: 3
  • Karma: 1
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?
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Display number of questions depending on device/browser 1 Jahr 5 Tage her #101067

  • holch
  • holchs Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 2853
  • Dank erhalten: 360
  • Karma: 125
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!
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Display number of questions depending on device/browser 1 Jahr 3 Tage her #101086

  • tpartner
  • tpartners Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 4293
  • Dank erhalten: 810
  • Karma: 373
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.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Display number of questions depending on device/browser 1 Jahr 3 Tage her #101089

  • Ben_V
  • Ben_Vs Avatar
  • OFFLINE
  • Platinum Lime
  • Beiträge: 1125
  • Dank erhalten: 259
  • Karma: 79
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

goo.gl/Bw5iM => Recherche GG dans le forum français (remplacer "exemple" dans la barre de recherche)
goo.gl/WX8PH => GG search for english forum (Replace "example" in the search bar)
goo.gl/IxiGu => Búsqueda en el foro en español (Cambiar "ejemplo" en la barra de...
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Moderatoren: ITEd
Ladezeit der Seite: 0.145 Sekunden
Donation Image