Welcome to the LimeSurvey Community Forum

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

Change Question Type Depending Screen Size

  • arielmosto
  • arielmosto's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
8 years 11 months ago #119010 by arielmosto
Change Question Type Depending Screen Size was created by arielmosto
Hi.

The "Array" type question (radios) that I'm using, looks good on pc but not on smartphone.

But, If I change in "Advance settings" to "Use dropdown presentation" looks good in the smartphone screen but in PC does not make sense.

Jquery can change to the "dropdown presentation" depending screen size (smartphone)?

(I'm already using a responsive template)

Thanks regards.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 11 months ago #119013 by tpartner
Replied by tpartner on topic Change Question Type Depending Screen Size
Have a look at this post for a jQuery plugin that converts arrays to drop-downs on smaller screens - www.limesurvey.org/en/forum/design-issue...nd-screen-fit#118283

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 11 months ago #119014 by tpartner
Replied by tpartner on topic Change Question Type Depending Screen Size
And now added to the workarounds section - manual.limesurvey.org/Workarounds:_Manip...s_on_smaller_screens

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • arielmosto
  • arielmosto's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
8 years 11 months ago #119020 by arielmosto
Replied by arielmosto on topic Change Question Type Depending Screen Size
Tony! Super Great thanks!

Is there any way that the dropdown, by default, does not appear empty? Can we display something like "Select your option"?

Regards!
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 11 months ago #119034 by tpartner
Replied by tpartner on topic Change Question Type Depending Screen Size
Good catch Ariel, I have updated the workaround with a configurable "Please choose" text - manual.limesurvey.org/Workarounds:_Manip...s_on_smaller_screens

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • arielmosto
  • arielmosto's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
8 years 11 months ago #119038 by arielmosto
Replied by arielmosto on topic Change Question Type Depending Screen Size
Thanks Tony!

I tried on two different phones and repeats the box for each sub-question.

attached image.

regards !
Attachments:
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 11 months ago #119040 by tpartner
Replied by tpartner on topic Change Question Type Depending Screen Size
What version of LimeSurvey are you using? Please attache a small test survey.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • arielmosto
  • arielmosto's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
8 years 11 months ago #119041 by arielmosto
Replied by arielmosto on topic Change Question Type Depending Screen Size
Sorry Tony, my mistake. (I pasted wrong...)

Works great !

Thanks a lot Tony
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose