Welcome to the LimeSurvey Community Forum

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

Array with ranking

  • apoggio
  • apoggio's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
6 years 4 months ago #160483 by apoggio
Array with ranking was created by apoggio
Hello,
I would like to create an array with multiple answers and 3 possible choices.
Example:

Question a 1 2 3 no answer
Question b 1 2 3 no answer
Question c 1 2 3 no answer
Question d 1 2 3 no answer
Question e 1 2 3 no answer

The idea between this array is to use it like ranking 3 of each answers and make sure people can not select multiple times 1,2 or 3

Answer example:
Question a is 1
Question b is 3
Question e is 2
all other question are not answer

I can not use the ranking question type of lime Survey too complex to use for my users.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 4 months ago #160491 by DenisChenu
Replied by DenisChenu on topic Array with ranking
Hi,
demonstration.sondages.pro/714997

I like the last one too

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
More
6 years 4 months ago #160494 by jelo
Replied by jelo on topic Array with ranking

DenisChenu wrote: I like the last one too

The last one is not as bullet proof as the first one.
Personally I like the last one too. But I had respondents which assigned e.g 1 on two dropdowns and didn't get why they couldn't move on. The first ranking example is preventing that two items have the same rank assigned.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 4 months ago #160516 by DenisChenu
Replied by DenisChenu on topic Array with ranking
The difference betwwen the 1st and last are the "mandatory" set on the 1st one, if yu set mandatory to the last one too : you don't have to control 1 is set if 2 is set (count(self)==max(self)).

And if you disable mandatory on 1st : you need to add count(self)==max(self) :)

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • apoggio
  • apoggio's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
6 years 4 months ago #160579 by apoggio
Replied by apoggio on topic Array with ranking
Hello, I like the first solution, but if I want to build the the array with the previous question like
"((H6_SQ001.NAOK == "Y" or H6_SQ002.NAOK == "Y" or H6_SQ003.NAOK == "Y" or H6_SQ004.NAOK == "Y" or H6_SQ005.NAOK == "Y" or H6_SQ006.NAOK == "Y" or H6_SQ007.NAOK == "Y" or H6_SQ008.NAOK == "Y" or H6_other.NAOK == "Y"))"
and filtering the array with question H6
Then the "unique(self)" validation does not work any more.
Do you have an idea?
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 4 months ago #160677 by DenisChenu
Replied by DenisChenu on topic Array with ranking
unique(self.NAOK) maybe (surely)

See manual.limesurvey.org/Expression_Manager#Usage_of_NAOK

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose