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

TOPIC: Change Format based on user device

Change Format based on user device 3 years 7 months ago #92126

  • cberghoff
  • cberghoff's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 12
  • Karma: 0
I'm looking for a way to change the question presentation format based on the type of device the respondent is using. I already have a session variable that indicates handheld or desktop. I'd like to make a survey display group by group if the session variable indicates desktop, etc., and have a question by question presentation if the session variable indicates a smartphone, etc.

Is anyone doing something similar, or have any suggestions?

Thanks,
Chris
The administrator has disabled public write access.

Change Format based on user device 3 years 7 months ago #92182

  • Ben_V
  • Ben_V's Avatar
  • Offline
  • Platinum Lime
  • Posts: 1825
  • Thank you received: 449
  • Karma: 111
Hi,
it seems to me a bit difficult to implement this in a same survey... :(

A solution could be to set 2 surveys, 100% similars (questions, answers, conditions etc.) with setting:
- survey #1 group by group (standard devices)
- survey #2 question by question (small devices)

This made, you can for example use the survey description area to place some javascript code to redirect the user or not to the other survey (js based on user-agent, screen-size, custom variable etc.) .

For results analysis, just merge all responses using VV files import/export facilities.
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)
Last Edit: 3 years 7 months ago by Ben_V.
The administrator has disabled public write access.
Time to create page: 0.196 seconds
Imprint                   Privacy policy                  Revocation information and revocation form