Welcome to the LimeSurvey Community Forum

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

Can I use answer of ranking question in following questions?

More
2 years 3 months ago #242985 by Joffm
Hi,

1.what do you want to achieve with these first 12 questions?
You know, equations are surrounded by curly brackets.

2. Why are there two curly brackets around the equation?
With the correct syntax you get the code of the first place.

 
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

More
2 years 3 months ago #242986 by rockyist
Hello Joffm, 

The first 12 equations are defined as mode constant. In the case of your screenshot, the code of the bus is SQ9. So I want to get the value of SQ9 equation which is 25. 

Best,
 

Please Log in to join the conversation.

More
2 years 3 months ago - 2 years 3 months ago #242987 by Joffm
But these 12 equations are wrong.
As I wrote, equations are surrounded by curly brackets.
What you do is only the display of a number.

If you use curly brackets you store a "7" in SQ1. Meaning, you have to write an equation {7}.

Obviously you want to get a certain value depending on the ranking question.
With your idea you could do something like this:
{if(Preference_1.code=="SQ1",SQ1,if(Preference_1.code=="SQ2",SQ2,if(Preference_1.code=="SQ3",SQ3,.....}

But this you can write as 
{if(Preference_1.code=="SQ1",7,if(Preference_1.code=="SQ2",17,if(Preference_1.code=="SQ3",17,.....}

But both is absolutely not necessary.
Instead use assessment values to give each ranking option a certain value.

Joffm

BTW:
If this happens to be one of the yearly surveys about "openbare vervoer" of the TUE, you may ask some of your fellow students who also worked on this in the past.

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 2 years 3 months ago by Joffm.

Please Log in to join the conversation.

More
2 years 3 months ago #243025 by rockyist
Thank you for your patient reply. It works!!!
 

Please Log in to join the conversation.

More
2 years 2 months ago - 2 years 2 months ago #244110 by rockyist
Hello Joffm,

Here comes one new question. I want to ask respondents about their mode of accessing public transport (which mode will you use to access the public transport stops?). Then randomly one of their choices will be displayed in the following question. I understand questions and groups can be displayed randomly, but am wondering if it's possible to do the same on the previously chosen question options? 
The lss file is attached below.

Thank you in advance.
Last edit: 2 years 2 months ago by rockyist.

Please Log in to join the conversation.

More
2 years 2 months ago - 2 years 2 months ago #244111 by Joffm

Here comes one new question.

Yes, it is a new question, not related to "Can I use answer of ranking question in following questions?"

Why don't you open a new thread?
I am not surprised to read frequently "I searched the forum but did not find" if a question about random select of multiple choices is hidden in a thread about ranking.

Joffm

But nevertheless, here an easy solution without javascript.
 

File Attachment:

File Name: limesurvey...8461.lss
File Size:83.64 KB


But are you sure, you use an array(numbers)?
 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 2 years 2 months ago by Joffm.

Please Log in to join the conversation.

More
2 years 1 month ago - 2 years 1 month ago #244791 by rockyist
Hello all, 

Now I'm trying to use answers from the previous multi-checkbox question (irrelevant in the survey) to filter the options displayed in the ranking question (preference). I want to use an in-between question (irrelevantHidden) to conduct some assignments.  It works well when the in-between question is displayed but doesn't work when it's hidden. I'm wondering if it's possible to achieve what I want and hide the in-between question at the same time. Or do you have other suggestions? You can check the survey file in the attached document.

Best,
 
Last edit: 2 years 1 month ago by rockyist.

Please Log in to join the conversation.

More
2 years 1 month ago #244793 by Joffm
Sorry, but I already wrote 

Yes, it is a new question, not related to "Can I use answer of ranking question in following questions?"

Why don't you open a new thread?
I am not surprised to read frequently "I searched the forum but did not find" if a question about random select of multiple choices is hidden in a thread about ranking.


This again is not related to your initial topic "Can I use answer of ranking question in following questions?"

Remember: This is not a dialogue, this is a forum.

So, please: New topic, new thread.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: rockyist

Please Log in to join the conversation.

Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose