Welcome to the LimeSurvey Community Forum

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

array column multiple choice create?

More
4 years 9 months ago #208088 by liumingjun
I konw limesurvey array row multiple choice (array num ),but i need array column multiple choice
nulls_q1s_q2
answer1v
answer2v
answer3v
answer4v
answer5v
The topic has been locked.
More
4 years 9 months ago #208093 by DenisChenu
I don't understand ....

Array num is not by row or by column, it's both.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
More
4 years 9 months ago #208120 by holch
Array by column only exists because in the normal array question with radio buttons you can only have one answer per row. Array by colum allows only one answer per column.

With multiple choice (check boxes) you can check as many answer per row or per column as you want. So there is no need for "by column".

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
The topic has been locked.
More
4 years 7 months ago #210235 by liumingjun
@media>760px is normal
but,@media<760 logic shows error
 
The topic has been locked.
More
4 years 7 months ago #210236 by liumingjun
should be
if @media<760px
What do you play during the day?
switch
ps5
xbox
What do you play at night
switch
ps5
xbox
The topic has been locked.
More
4 years 7 months ago #210249 by tpartner
There is no way for us to help without knowing the LimeSurvey version, survey theme and getting a short sample survey (.lss file) containing only that question.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
More
4 years 7 months ago - 4 years 7 months ago #210283 by liumingjun
@media width<760px style is error
Last edit: 4 years 7 months ago by liumingjun.
The topic has been locked.
More
4 years 7 months ago #210284 by liumingjun
@media width<760px style is error
The topic has been locked.
More
4 years 7 months ago - 4 years 7 months ago #210286 by DenisChenu

liumingjun wrote: @media>760px is normal
but,@media<760 logic shows error



 

Need a totally adapated solution :i don't have real idea …
Except very complex JS system : need 2 separate part : one for big screen and one for little screen.

If you look source code : order of element are like this. Maybe with flex display it can be differnt, but … clearly : complex.

More clear : in HTML we have

Header of array
- White cell
- Sub question #1
- Sub question #2
Answser #1 text
- radio input for Sub question #1/ answer #1 (+ label)
- radio input  for Sub question #2/ answer #1 (+ label)
Answser #2 text
- radio input for Sub question #1/ answer #2 (+ label)
- radio input  for Sub question #2/ answer #2 (+ label)

It's the real order … hard to show n it with a differtent order …

 

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
Last edit: 4 years 7 months ago by DenisChenu.
The topic has been locked.
More
4 years 7 months ago #210288 by liumingjun
Yes, that's it, all come to the forum for help, are there any other solutions?
The topic has been locked.
More
4 years 7 months ago #210302 by tpartner
I agree, it is broken.

Why not use a normal array instead of the array-by-column you show in your screenshots?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: DenisChenu
The topic has been locked.
More
4 years 7 months ago - 4 years 7 months ago #210316 by liumingjun
I don't understand ,normal array @media width<760 style is error too,
eg:
When there are a lot of answers, there will be problems in this display

########answer1 answer2 answer3 answer4 answer5 ....answer20+
question1
question2

eg:
This display is more reasonable

#######question1 question2
answer1
answer2
answer3
answer4
...
answer20+
Last edit: 4 years 7 months ago by liumingjun.
The topic has been locked.
More
4 years 7 months ago - 4 years 7 months ago #210319 by Joffm
Sorry, but I do not see your problem.
This is the usual behaviour of a bootstrap grid.

should be
if @media<760px
What do you play during the day?
switch
ps5
xbox
What do you play at night
switch
ps5
xbox

If you want to achieve this, you have to restructure your question.
Use a different question type. As tpartner suggested "a normal array".
I agree, with a lot of answer option the display on a dektop will be a bit messed up.
But on a smartphone?
 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 4 years 7 months ago by Joffm.
The following user(s) said Thank You: DenisChenu
The topic has been locked.
More
4 years 7 months ago #210340 by DenisChenu

liumingjun wrote: Yes, that's it, all come to the forum for help, are there any other solutions? 

If i have a great solutuion : i make it when i review whole HTML code ;)

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
More
4 years 7 months ago #210342 by Joffm
And the "quick and dirty" solution is:
Insert a question to see if it is a mobile or not (or the screen size)
Have two questions,
a "normal" array for mobile
an "array by column" for desktop.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: DenisChenu, tpartner, liumingjun
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose