Show results of ranking

More
1 week 2 days ago #187616 by teracomp
I have a simple survey that asks a supervisor to pick 8 to 10 of 22 items and put them in rank order.

Once they're done, I want to show them their results.

Creating the ranking question is simple enough, but I don't see how to display the results after they click "next."

LSS attached if needed.

Thanks!

Dave Phillips
Attachments:

Please Log in or Create an account to join the conversation.

LimeSurvey Partners
More
1 week 2 days ago #187621 by mbates
Replied by mbates on topic Show results of ranking
Create an Array(Texts) that is shown to the user. Use an Equation that populates the cells in the Array according to the rankings in the previous question.

Please Log in or Create an account to join the conversation.

More
1 week 1 day ago #187627 by jelo
Replied by jelo on topic Show results of ranking

mbates wrote: Create an Array(Texts) that is shown to the user. Use an Equation that populates the cells in the Array according to the rankings in the previous question.

Why populating an array question? Wouldn't plain Expression Script (Expression Manager) work to display the rankings? I never tried it and some scripting functions are missing (e.g. to lookup with rank a certain element has), but just displaying rank 1 to x will work with textdisplay alone, right?


www.limesurvey.org/forum/can-i-do-this-w...d-expression-manager

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The following user(s) said Thank You: tpartner, teracomp

Please Log in or Create an account to join the conversation.

More
1 week 1 day ago - 1 week 1 day ago #187631 by teracomp
Replied by teracomp on topic Show results of ranking
Ah...that gives me the detail I needed.

The question name is MRanking, so the top 8 to 10 would be MRanking_1, MRanking_2, etc.

Since I require a minimum of 8, I can safely display MRanking_1.shown, MRanking_2.shown, ... MRanking_8.shown.

I'll need to test for the existence of 9 & 10 and show the results or "Not Used".

This is all I needed for the expression question.

<ol>
<li>{MRanking_1.shown}</li>
<li>{MRanking_2.shown}</li>
<li>{MRanking_3.shown}</li>
<li>{MRanking_4.shown}</li>
<li>{MRanking_5.shown}</li>
<li>{MRanking_6.shown}</li>
<li>{MRanking_7.shown}</li>
<li>{MRanking_8.shown}</li>
<li>{if(MRanking_9.NAOK, MRanking_9.shown, "Not Used")}</li>
<li>{if(MRanking_10.NAOK, MRanking_10.shown, "Not Used")}</li>
</ol>

Thanks for the advice!

Dave Phillips
Last edit: 1 week 1 day ago by teracomp. Reason: added .shown to MRanking_9

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!