Multi numeric question for Ranking

More
2 years 11 months ago - 2 years 11 months ago #113900 by Tektom
Tektom created the topic: Multi numeric question for Ranking
I'm hoping I can get the answer to a slightly different question, but very close. I have a question which is multiple numeric input where they are basically ranking a list of projects by importance. They do not have to rank all of them but we do want to make sure that the values are unique. So they can't rank two projects as their # 1 choice for example. We don't want to use the ranking question type, which I know is much easier! It has to be non mandatory question type as they can choose to skip entirely or rank as few or as many (15 in list). I've tried a few variations of the example but no luck!

Thanks!

[MODERATION]
Originally posted after www.limesurvey.org/en/community-services...ating-an-array-texts
Moved because new LimeSUrvey version and different question
[/MODERATION]
Last Edit: 2 years 11 months ago by DenisChenu. Reason: [MODERATION]

Please Log in to join the conversation.

More
2 years 11 months ago #113917 by DenisChenu
DenisChenu replied the topic: Multi numeric question for Ranking
try unique(self) in Question validation equation

Example with an array here : limesurvey.sondages.pro/442251.html

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
2 years 11 months ago #113918 by Tektom
Tektom replied the topic: Multi numeric question for Ranking
Sorry I had originally posted this in the wrong forum, but it was the only answer that was close to what I needed. The question type I have is actually a multiple numeric input not an array, so they are typing numbers in the spaces. There are 15 choices so as an array it wouldn't leave enough room for the description of the options they are ranking. Also it is not necessary that they rank all of the items. It's a question where they rank as few or as many of the 15 options which are all projects that a club could spend their money on as upgrades.

Thanks for your help.

Please Log in to join the conversation.

More
2 years 11 months ago - 2 years 11 months ago #113919 by DenisChenu
DenisChenu replied the topic: Multi numeric question for Ranking
Yes, and did you try ?

And self(unique) force all number to be unique (or empty)
With min to 1 and max to 15 this can do the trick.

Final:
Question validation equation
unique(self)
and
count(self)==max(self)
Sub-question validation equation
is_empty(NUMBER_SQ001) or is_int(NUMBER_SQ001)
and
is_empty(NUMBER_SQ002) or is_int(NUMBER_SQ002)
and
is_empty(NUMBER_SQ003) or is_int(NUMBER_SQ003)
and
is_empty(NUMBER_SQ004) or is_int(NUMBER_SQ004)

Test : limesurvey.sondages.pro/442251.html?newtest=Y#

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
Last Edit: 2 years 11 months ago by DenisChenu.
The following user(s) said Thank You: Tektom

Please Log in to join the conversation.

More
2 years 11 months ago - 2 years 11 months ago #113921 by Tektom
Tektom replied the topic: Multi numeric question for Ranking
Thank you for the reply. One question, it doesn't seem to be working. Does the survey have to be activated before this works or can this work when you do question preview or do you have to do a survey test to get to this question before it works?
Last Edit: 2 years 11 months ago by Tektom. Reason: clarified question

Please Log in to join the conversation.

More
2 years 11 months ago #113928 by DenisChenu
DenisChenu replied the topic: Multi numeric question for Ranking
It's work in PHP with your template (try to submit with error)

But your template have to be updated to 2.05 version.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
2 years 11 months ago #113947 by Tektom
Tektom replied the topic: Multi numeric question for Ranking
I have version 2.05 and tried using one of the new templates but it doesn't show an error message when I enter 1 for multiple choices. There is no error message to post it just doesn't work.

Please Log in to join the conversation.

More
2 years 11 months ago #113957 by Mazi
Mazi replied the topic: Multi numeric question for Ranking
Please post a link to an activated sample survey.


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

More
2 years 11 months ago #113968 by DenisChenu
DenisChenu replied the topic: Multi numeric question for Ranking
Seems strange : can you put your lss example file here ?

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

More
2 years 11 months ago #113982 by Tektom
Tektom replied the topic: Multi numeric question for Ranking
Ok I uploaded the template folder again and made a copy and customized the limespired template so now it's working, although not exactly the same as the example. There is now a new popup window with a generic message that says "One or more questions have not been answered in a valid manner. You cannot proceed until these answers are valid". Since I hid the help text and made it red, they will also see "Please be sure to only use each number once". However it only shows this after they try to advance to the next question not live as they're typing.

I would prefer if it would show the help text in red telling them this as soon as they entered an identical number as the example that Denis created does. What else do I have to change to get rid of this popup window and have the text load as soon as they enter an identical number in one of the boxes? Thank you all for your help.

Here is a live link of the question: riconsultants.com/surveys/index.php?r=su...43/newtest/Y/lang/en

Please Log in to join the conversation.

More
2 years 11 months ago - 2 years 11 months ago #113983 by DenisChenu
DenisChenu replied the topic: Multi numeric question for Ranking
I really don't understand why it work on my server, and not on your; what is your LimeSurvey version and build number ?


But it works with a 2.00 version too (the last 2.00)
200.sondages.pro/index.php/survey/index/...14/newtest/Y/lang/en

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
Last Edit: 2 years 11 months ago by DenisChenu.

Please Log in to join the conversation.

More
2 years 11 months ago #113984 by Tektom
Tektom replied the topic: Multi numeric question for Ranking
I tried responding to your email but was rejected because I'm not in the virtual mailbox table. I have version 2.05+ Build 140902.

Since the comfort update never works for me, I'm always doing it manually. Last time apparently the template folder didn't completely get updated to the new version. Now that I've copied that over the question works, but as I said earlier, not exactly like the example you gave. I guess these popup text boxes are a new addition?

Please Log in to join the conversation.

More
2 years 11 months ago - 2 years 11 months ago #113985 by Mazi
Mazi replied the topic: Multi numeric question for Ranking
Can you post a screen shot of the question validation and question validation tip?

Please do not mark the tip red by default because the Expression Manager should mark it green once the validation is true and red as long as it is not true.


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"
Last Edit: 2 years 11 months ago by Mazi.
The following user(s) said Thank You: Tektom

Please Log in to join the conversation.

More
2 years 11 months ago #113986 by Tektom
Tektom replied the topic: Multi numeric question for Ranking
There that question fixed it! I was putting the wording in the sub-question validation tip! Now I removed teh red and it is green unless they put numbers in twice, then turns purple and moves to middle of screen like it should. Thank you for your help this has fixed my problem!!

Sample question here: riconsultants.com/surveys/index.php?r=su...43/newtest/Y/lang/en

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now