﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Millisecond Forums » Millisecond Forums » Inquisit 4  » Sentences ranking on one display</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Fri, 01 May 2026 16:16:09 GMT</lastBuildDate><ttl>20</ttl><item><title>Sentences ranking on one display</title><link>https://forums.millisecond.com/Topic13568.aspx</link><description>Hi, I found a topic from about 2004 which states that it is not possible but maybe after few years it became...&lt;div&gt;&lt;br/&gt;&lt;/div&gt;So, I have 20 sentences and want to ask participants to rank them on a basis of their importance from 1 to 20.&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&lt;div&gt;Is that possible to do that on the one display? For example by allowing participants to write the number next to each sentence or (even better) by dragging&amp;amp;dropping sentences. Or maybe by other way.&lt;br/&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;Basically I need to have all sentences on one screen and let participants to rank them somehow.&lt;div&gt;&lt;br/&gt;&lt;/div&gt;I'll be glad if you can help me.&lt;br/&gt;&lt;/div&gt;&lt;/div&gt;</description><pubDate>Thu, 19 Jun 2014 23:05:36 GMT</pubDate><dc:creator>pawelstrojny</dc:creator></item><item><title>RE: Sentences ranking on one display</title><link>https://forums.millisecond.com/Topic13636.aspx</link><description>That's perfect solution for me. Thank you.&lt;br/&gt;</description><pubDate>Thu, 19 Jun 2014 23:05:36 GMT</pubDate><dc:creator>pawelstrojny</dc:creator></item><item><title>RE: Sentences ranking on one display</title><link>https://forums.millisecond.com/Topic13612.aspx</link><description>Thanks for the useful clarification. I'm afraid, though, that isn't really possible. The only thing you *could* do, is run the &amp;lt;surveypage&amp;gt; via a &amp;lt;survey&amp;gt; element (instead of a &amp;lt;block&amp;gt;):&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ rankstring = ""&lt;br/&gt;/ validranking = false&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;survey mysurvey&amp;gt;&lt;br/&gt;/ pages = [1=mypage]&lt;br/&gt;/ showbackbutton = false&lt;br/&gt;/ showpagenumbers = false&lt;br/&gt;&amp;lt;/survey&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text debug&amp;gt;&lt;br/&gt;/ items = ("&amp;lt;%values.rankstring%&amp;gt;")&lt;br/&gt;/ position = (50%, 5%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage mypage&amp;gt;&lt;br/&gt;/ stimulusframes = [1=debug]&lt;br/&gt;/ questions = [1=r01; 2=r02]&lt;br/&gt;/ ontrialbegin = [values.rankstring=""]&lt;br/&gt;/ ontrialend = [values.rankstring=concat(concat(values.rankstring,dropdown.r01.response),dropdown.r02.response)]&lt;br/&gt;/ ontrialend = [if (&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; length(values.rankstring) == 2 &amp;amp;&amp;amp;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; length(replaceall(values.rankstring, dropdown.r01.response, "")) == 1 &amp;amp;&amp;amp;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; length(replaceall(values.rankstring, dropdown.r02.response, "")) == 1&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ) values.validranking = true else values.validranking = false]&lt;br/&gt;/ branch = [if ( values.validranking == false) surveypage.mypage]&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;dropdown r01&amp;gt;&lt;br/&gt;/ caption = "Rank 1"&lt;br/&gt;/ options = ("Object A", "Object B", "Object C", "Object D")&lt;br/&gt;/ optionvalues = ("A", "B", "C", "D")&lt;br/&gt;/ required = true&lt;br/&gt;&amp;lt;/dropdown&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;dropdown r02&amp;gt;&lt;br/&gt;/ caption = "Rank 2"&lt;br/&gt;/ options = ("Object A", "Object B", "Object C", "Object D")&lt;br/&gt;/ optionvalues = ("A", "B", "C", "D")&lt;br/&gt;/ required = true&lt;br/&gt;&amp;lt;/dropdown&amp;gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;That will preserve previous responses, but it has other drawbacks: (1) The results will end up in a separate, differently formatted data file and (2) you will not get any record of how many times a given person had to adjust the ranking until he/she got it right.&lt;br/&gt;</description><pubDate>Wed, 18 Jun 2014 06:16:22 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Sentences ranking on one display</title><link>https://forums.millisecond.com/Topic13610.aspx</link><description>Basically we are interested in the proportion of categories of the chosen sentences (there are two categories).&lt;br/&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;I think I didn't explain it well. My point is to prepare a solution which will prevent participant from assigning ranks again when he make a mistake. Now if all conditions aren't met (the rank is doubled) the script goes back to the beginning of ranking task (erases all assigned ranks). My goal is to change it - the best would be if we can make script which simply won't go forward (and backward) - just like in case when one (or more) answer is missing; in the basic setup in that situation the missing question is marked red and "next" button doesn't react, could we do that - mark "doubled" ranks and wait for corrections without erasing all assigned ranks?&lt;br/&gt;</description><pubDate>Tue, 17 Jun 2014 22:37:31 GMT</pubDate><dc:creator>pawelstrojny</dc:creator></item><item><title>RE: Sentences ranking on one display</title><link>https://forums.millisecond.com/Topic13605.aspx</link><description>What's the point then in trying to validate responses at all? But alas, feel free to define a suitable /stop attribute.&lt;br/&gt;</description><pubDate>Tue, 17 Jun 2014 08:34:41 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Sentences ranking on one display</title><link>https://forums.millisecond.com/Topic13604.aspx</link><description>That's not a good news :/ Maybe there is a solution to "stop" script if two equal ranks are given? Like when you don't answer obligatory question?&lt;br/&gt;</description><pubDate>Tue, 17 Jun 2014 08:30:45 GMT</pubDate><dc:creator>pawelstrojny</dc:creator></item><item><title>RE: Sentences ranking on one display</title><link>https://forums.millisecond.com/Topic13601.aspx</link><description>Communicating a mistake: Yes. Adjust the /branch to some page or trial displaying a suitable error message. From there then /branch to the ranking page again.&lt;div&gt;&lt;br/&gt;&lt;/div&gt;Storing (or rather "restoring") previous answers: No.&lt;br/&gt;</description><pubDate>Tue, 17 Jun 2014 06:55:43 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Sentences ranking on one display</title><link>https://forums.millisecond.com/Topic13600.aspx</link><description>Thank you,&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&lt;div&gt;One more question - is that possible to change the script in the way that if participant makes mistake (e.g. skip one question) the script will communicate that but save the other answers? I expect to be really annoying when sb find that 19 answers are deleted and he must do it again :/&lt;br/&gt;&lt;/div&gt;</description><pubDate>Tue, 17 Jun 2014 06:47:57 GMT</pubDate><dc:creator>pawelstrojny</dc:creator></item><item><title>RE: Sentences ranking on one display</title><link>https://forums.millisecond.com/Topic13599.aspx</link><description>For the sake of completeness, though, if you absolutely *must* go down the other route, something along the lines of&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ rankstring = ""&lt;br/&gt;/ validranking = false&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ trials = [1=mypage]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text debug&amp;gt;&lt;br/&gt;/ items = ("&amp;lt;%values.rankstring%&amp;gt;")&lt;br/&gt;/ position = (50%, 5%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage mypage&amp;gt;&lt;br/&gt;/ stimulusframes = [1=debug]&lt;br/&gt;/ questions = [1=r01; 2=r02]&lt;br/&gt;/ ontrialbegin = [values.rankstring=""]&lt;br/&gt;/ ontrialend = [values.rankstring=concat(concat(values.rankstring,dropdown.r01.response),dropdown.r02.response)]&lt;br/&gt;/ ontrialend = [if (&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; length(values.rankstring) == 2 &amp;amp;&amp;amp;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; length(replaceall(values.rankstring, dropdown.r01.response, "")) == 1 &amp;amp;&amp;amp;&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; length(replaceall(values.rankstring, dropdown.r02.response, "")) == 1&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ) values.validranking = true else values.validranking = false]&lt;br/&gt;/ branch = [if ( values.validranking == false) surveypage.mypage]&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;dropdown r01&amp;gt;&lt;br/&gt;/ caption = "Rank 1"&lt;br/&gt;/ options = ("Object A", "Object B", "Object C", "Object D")&lt;br/&gt;/ optionvalues = ("A", "B", "C", "D")&lt;br/&gt;/ required = true&lt;br/&gt;&amp;lt;/dropdown&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;dropdown r02&amp;gt;&lt;br/&gt;/ caption = "Rank 2"&lt;br/&gt;/ options = ("Object A", "Object B", "Object C", "Object D")&lt;br/&gt;/ optionvalues = ("A", "B", "C", "D")&lt;br/&gt;/ required = true&lt;br/&gt;&amp;lt;/dropdown&amp;gt;&lt;br/&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;should be workable.&lt;br/&gt;</description><pubDate>Tue, 17 Jun 2014 06:26:28 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Sentences ranking on one display</title><link>https://forums.millisecond.com/Topic13598.aspx</link><description>Well, the original (assign rank to object) would be much easier (and thus preferable) to implement than the reverse (assign object to rank).&lt;br/&gt;</description><pubDate>Tue, 17 Jun 2014 05:47:19 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Sentences ranking on one display</title><link>https://forums.millisecond.com/Topic13594.aspx</link><description>Now I understand what you don't :)&lt;div&gt;&lt;br/&gt;&lt;/div&gt;It's because I reversed "roles" in your script, because of my English limitation it would be easier to clarify it on the example; let's say we have four things (apple, orange, strawberry, apricot) and instruction says "Choose two most liked and rank that two", I'm not interested in the two less liked.&lt;br/&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;In order to do that I prepared two"dropdown" elements, first says "The most liked fruit" and the second "The second most liked fruit" and in options I have four fruits. My intention is to let participants choose one as "most liked", another one as "second" and to leave the rest unranked. As you see there is the reversion - what was the options in original script (Most liked, Second...) is the content of the "question" here and vice versa.&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&lt;div&gt;I decided to reverse it because it should be easier to choose between sentences than numbers in "dropdown" elements, but if it is difficult - I can go back to the original conception.&lt;br/&gt;&lt;/div&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;That's exactly my situation (but 20 sentences and participants need to rank 10 most important).</description><pubDate>Mon, 16 Jun 2014 21:53:10 GMT</pubDate><dc:creator>pawelstrojny</dc:creator></item><item><title>RE: Sentences ranking on one display</title><link>https://forums.millisecond.com/Topic13588.aspx</link><description>Yes, understood. Thanks for the clarification. Should be doable. However, here's what I don't "get": If you are ranking 2 out of 4 elements, you only have *two ranks* to assign (1 and 2). What sense does it make to allow for something like 1 and 3? Obviously, there *is* an element in this case with *implicit* rank 2 -- otherwise you would not have been able to assign rank 3 to another element.&lt;br/&gt;</description><pubDate>Mon, 16 Jun 2014 09:37:36 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Sentences ranking on one display</title><link>https://forums.millisecond.com/Topic13587.aspx</link><description>Yes and let's say that we want to force participants to choose only two of four (e.g. 1 &amp;amp; 2 or 1 &amp;amp; 3 but no 1 &amp;amp; 1 nor 1, 4, &amp;amp; 3).&lt;div&gt;&lt;br/&gt;&lt;/div&gt;In that case I can't use your script directly because in it participant have to "use" every answer exactly once. I need to change it to let participants to choose only two of four answers (no matter which) and not to repeat the answer chosen before.&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&lt;div&gt;Do you understand now?&lt;br/&gt;&lt;/div&gt;</description><pubDate>Mon, 16 Jun 2014 09:13:30 GMT</pubDate><dc:creator>pawelstrojny</dc:creator></item><item><title>RE: Sentences ranking on one display</title><link>https://forums.millisecond.com/Topic13585.aspx</link><description>I don't understand the question, I'm afraid.&lt;div&gt;&lt;br/&gt;&lt;/div&gt;The scripts I referred you to enforce that every available rank (1,2,3 and 4 in the examples) is assigned *exactly once*.&lt;br/&gt;</description><pubDate>Mon, 16 Jun 2014 08:34:50 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Sentences ranking on one display</title><link>https://forums.millisecond.com/Topic13581.aspx</link><description>Thanks Dave,&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&lt;div&gt;This solution &lt;a href="https://www.millisecond.com/forums/Topic7520.aspx#bm7524"&gt;https://www.millisecond.com/forums/Topic7520.aspx#bm7524&lt;/a&gt; seems fine to me.&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&lt;div&gt;Because my sentences are many and quite long they don't fit the screen, I decided to reduce the ranking to top10, so participants are asked to rank the first 10 sentences (out of 20).&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&lt;div&gt;In that case your "demo" script wouldn't work because it demands every one's sentence appearance, right?&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&lt;div&gt;Do you have any idea how to reverse that demand? I mean, to change 20 &lt;span style="font-style: italic;"&gt;"contains(values.rankstring,"sentencenumber")==true &amp;amp;&amp;amp;"&lt;/span&gt; into something like: &lt;span style="font-style: italic;"&gt;"does not contain "sentencenumber" more than one"&lt;/span&gt;&lt;br/&gt;&lt;/div&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&lt;br/&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description><pubDate>Mon, 16 Jun 2014 08:25:07 GMT</pubDate><dc:creator>pawelstrojny</dc:creator></item><item><title>RE: Sentences ranking on one display</title><link>https://forums.millisecond.com/Topic13572.aspx</link><description>If you want to build a drag &amp;amp; drop mechanic, study the "Tower of London" script available from the Task Library. Be warned: This isn't trivial.&lt;div&gt;&lt;br/&gt;&lt;/div&gt;If you want to go with the "assign numbers" option, consider using &amp;lt;surveypage&amp;gt;s with a bunch of &amp;lt;caption&amp;gt;s, &amp;lt;textbox&amp;gt;es, &amp;lt;dropdown&amp;gt;s plus validation logic. See e.g. &lt;a href="http://www.millisecond.com/forums/FindPost7561.aspx"&gt;http://www.millisecond.com/forums/FindPost7561.aspx&lt;/a&gt; &amp;amp; &lt;a href="https://www.millisecond.com/forums/FindPost7524.aspx"&gt;https://www.millisecond.com/forums/FindPost7524.aspx&lt;/a&gt;&lt;br/&gt;</description><pubDate>Mon, 16 Jun 2014 06:18:15 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>