- Posts: 9
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Multi numeric question for Ranking
- Tektom
- Topic Author
- Offline
- New Member
Less
More
9 years 5 months ago - 9 years 5 months ago #113900
by Tektom
Multi numeric question for Ranking was created by Tektom
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]
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: 9 years 5 months ago by DenisChenu. Reason: [MODERATION]
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13597
- Thank you received: 2487
9 years 5 months ago #113917
by DenisChenu
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.
Replied by DenisChenu on topic Multi numeric question for Ranking
try unique(self) in Question validation equation
Example with an array here : limesurvey.sondages.pro/442251.html
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 , plugin development .
I don't answer to private message.
The topic has been locked.
- Tektom
- Topic Author
- Offline
- New Member
Less
More
- Posts: 9
- Thank you received: 0
9 years 5 months ago #113918
by Tektom
Replied by Tektom on 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.
Thanks for your help.
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13597
- Thank you received: 2487
9 years 5 months ago - 9 years 5 months ago #113919
by DenisChenu
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.
Replied by DenisChenu on 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 Sub-question validation equation
Test : limesurvey.sondages.pro/442251.html?newtest=Y#
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 Sub-question validation equation
Code:
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 , plugin development .
I don't answer to private message.
Last edit: 9 years 5 months ago by DenisChenu.
The following user(s) said Thank You: Tektom
The topic has been locked.
- Tektom
- Topic Author
- Offline
- New Member
Less
More
- Posts: 9
- Thank you received: 0
9 years 5 months ago - 9 years 5 months ago #113921
by Tektom
Replied by Tektom on 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: 9 years 5 months ago by Tektom. Reason: clarified question
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13597
- Thank you received: 2487
9 years 5 months ago #113928
by DenisChenu
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.
Replied by DenisChenu on 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.
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 , plugin development .
I don't answer to private message.
The topic has been locked.
- Tektom
- Topic Author
- Offline
- New Member
Less
More
- Posts: 9
- Thank you received: 0
9 years 5 months ago #113947
by Tektom
Replied by Tektom on 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.
The topic has been locked.
- Mazi
- Offline
- Official LimeSurvey Partner
9 years 5 months ago #113957
by Mazi
Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
Replied by Mazi on topic Multi numeric question for Ranking
Please post a link to an activated sample survey.
Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13597
- Thank you received: 2487
9 years 5 months ago #113968
by DenisChenu
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.
Replied by DenisChenu on 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 , plugin development .
I don't answer to private message.
The topic has been locked.
- Tektom
- Topic Author
- Offline
- New Member
Less
More
- Posts: 9
- Thank you received: 0
9 years 5 months ago #113982
by Tektom
Replied by Tektom on 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
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
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13597
- Thank you received: 2487
9 years 5 months ago - 9 years 5 months ago #113983
by DenisChenu
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.
Replied by DenisChenu on 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
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 , plugin development .
I don't answer to private message.
Last edit: 9 years 5 months ago by DenisChenu.
The topic has been locked.
- Tektom
- Topic Author
- Offline
- New Member
Less
More
- Posts: 9
- Thank you received: 0
9 years 5 months ago #113984
by Tektom
Replied by Tektom on 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?
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?
The topic has been locked.