Welcome to the LimeSurvey Community Forum

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

Change Format based on user device

  • cberghoff
  • cberghoff's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 years 1 month ago #92126 by cberghoff
Change Format based on user device was created by cberghoff
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 topic has been locked.
More
11 years 1 month ago - 11 years 1 month ago #92182 by Ben_V
Replied by Ben_V on topic Change Format based on user device
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
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
Last edit: 11 years 1 month ago by Ben_V.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose