﻿<?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  » Showing previous trials in a randomised-trials experiment</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Mon, 21 Sep 2026 08:24:51 GMT</lastBuildDate><ttl>20</ttl><item><title>Showing previous trials in a randomised-trials experiment</title><link>https://forums.millisecond.com/Topic23943.aspx</link><description>Dear all,&lt;br/&gt;&lt;br/&gt;I'm trying to create a task in which participants can view many different pictures and choose one picture when they decide to. This meant that I want them to be able to freely click "Back" to view the previous picture, and "Continue" to view the next picture. I have 110 pictures, and when participants decide which painting they want to choose, they can either continue to view other pictures or end the task. I have been able to achieve all the procedures I want except that when participants clicked on "Back", they were not shown the previous picture, rather it was a new, randomly chosen, picture.&lt;br/&gt;&lt;br/&gt;Does anyone know how I can display the previous picture when participants click on "Back"?&lt;br/&gt;&lt;br/&gt;Below are the script that I have right now:&lt;br/&gt;&lt;br/&gt;&amp;lt;radiobuttons choose&amp;gt;&lt;br/&gt;/ options = ("This painting has the highest price", "Continue viewing other paintings")&lt;br/&gt;/ optionvalues = ("1", "0")&lt;br/&gt;/ validresponse = ("1","0")&lt;br/&gt;/ position = (35%, 65%)&lt;br/&gt;&amp;lt;/radiobuttons&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;radiobuttons ask&amp;gt;&lt;br/&gt;/ options = ("Yes, I want to continue viewing other paintings", "No, I don't want to view more paintings")&lt;br/&gt;/ optionvalues = ("1", "0")&lt;br/&gt;/ position = (25%, 40%)&lt;br/&gt;&amp;lt;/radiobuttons&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;radiobuttons endask&amp;gt;&lt;br/&gt;/ options = ("Show me other paintings", "End Task")&lt;br/&gt;/ optionvalues = ("1", "0")&lt;br/&gt;/ position = (35%, 65%)&lt;br/&gt;&amp;lt;/radiobuttons&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage init&amp;gt;&lt;br/&gt;/ stimulustimes = [1=blank]&lt;br/&gt;/ response = noresponse&lt;br/&gt;/ branch = [surveypage.choice]&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage choice&amp;gt;&lt;br/&gt;/stimulustimes = [1=noreplace (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,&lt;br/&gt;50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110)]&lt;br/&gt;/questions = [1=choose]&lt;br/&gt;/backlabel = "Back"&lt;br/&gt;/finishlabel = "Continue"&lt;br/&gt;/ backbuttonposition = (13%, 85%)&lt;br/&gt;/nextbuttonposition = (75%, 85%)&lt;br/&gt;/showpagenumbers = false&lt;br/&gt;/ showquestionnumbers = false&lt;br/&gt;/ branch = [if (radiobuttons.choose.response == 1) surveypage.ask]&lt;br/&gt;/branch = [if(radiobuttons.choose.response==0) surveypage.choice]&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage ask&amp;gt;&lt;br/&gt;/ caption = "You have chosen a painting which you think has the highest price.&lt;br/&gt;&lt;br/&gt;Although you cannot change your decision, would you like to continue viewing other paintings?"&lt;br/&gt;/questions = [1=ask]&lt;br/&gt;/showbackbutton = false&lt;br/&gt;/showquestionnumbers = false&lt;br/&gt;/showpagenumbers = false&lt;br/&gt;/nextbuttonposition = (75%, 85%)&lt;br/&gt;/branch = [if (radiobuttons.ask.response==1) surveypage.end]&lt;br/&gt;/branch = [if (radiobuttons.ask.response==0) surveypage.endtask]&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage endtask&amp;gt;&lt;br/&gt;/caption = "You have now completed this task. Please click the finish button to proceed to the next task"&lt;br/&gt;/showbackbutton = false&lt;br/&gt;/showpagenumbers = false&lt;br/&gt;/showquestionnumbers = false&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage end&amp;gt;&lt;br/&gt;/stimulustimes = [1=noreplace (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,&lt;br/&gt;50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110)]&lt;br/&gt;/questions = [1=endask]&lt;br/&gt;/showpagenumbers = false&lt;br/&gt;/showquestionnumbers = false&lt;br/&gt;/backlabel = "Back"&lt;br/&gt;/finishlabel = "Continue"&lt;br/&gt;/branch = [if(radiobuttons.endask.response==0) surveypage.endtask]&lt;br/&gt;/branch = [if(radiobuttons.endask.response==1) surveypage.end]&lt;br/&gt;&lt;br/&gt;&amp;lt;survey test&amp;gt;&lt;br/&gt;/ pages = [1=init]&lt;br/&gt;&lt;br/&gt;Will greatly appreciate any help on this matter! Thank you so much!&lt;br/&gt;&lt;br/&gt;Best,&lt;br/&gt;Jace&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Tue, 06 Mar 2018 10:00:34 GMT</pubDate><dc:creator>labdurian</dc:creator></item><item><title>RE: Showing previous trials in a randomised-trials experiment</title><link>https://forums.millisecond.com/Topic23966.aspx</link><description>&lt;div data-id="23959" class="if-quote-wrapper" unselectable="on" data-guid="1520359226267"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="23959" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="23959" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="23959" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;labdurian - Monday, March 5, 2018&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-23959"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="23957" class="if-quote-wrapper" unselectable="on" data-guid="1520359226267"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="23957" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="23957" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="23957" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, March 5, 2018&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-23957"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="23956" class="if-quote-wrapper" unselectable="on" data-guid="1520359226267"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="23956" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="23956" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="23956" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;labdurian - Monday, March 5, 2018&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-23956"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="23951" class="if-quote-wrapper" unselectable="on" data-guid="1520359226267"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="23951" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="23951" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="23951" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, March 5, 2018&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-23951"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="23943" class="if-quote-wrapper" unselectable="on" data-guid="1520359226267"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="23943" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="23943" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="23943" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;labdurian - Saturday, March 3, 2018&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-23943"&gt;&lt;div class="if-quote-message-margin"&gt;Dear all,&lt;br/&gt;&lt;br/&gt;I'm trying to create a task in which participants can view many different pictures and choose one picture when they decide to. This meant that I want them to be able to freely click "Back" to view the previous picture, and "Continue" to view the next picture. I have 110 pictures, and when participants decide which painting they want to choose, they can either continue to view other pictures or end the task. I have been able to achieve all the procedures I want except that when participants clicked on "Back", they were not shown the previous picture, rather it was a new, randomly chosen, picture.&lt;br/&gt;&lt;br/&gt;Does anyone know how I can display the previous picture when participants click on "Back"?&lt;br/&gt;&lt;br/&gt;Below are the script that I have right now:&lt;br/&gt;&lt;br/&gt;&amp;lt;radiobuttons choose&amp;gt;&lt;br/&gt;/ options = ("This painting has the highest price", "Continue viewing other paintings")&lt;br/&gt;/ optionvalues = ("1", "0")&lt;br/&gt;/ validresponse = ("1","0")&lt;br/&gt;/ position = (35%, 65%)&lt;br/&gt;&amp;lt;/radiobuttons&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;radiobuttons ask&amp;gt;&lt;br/&gt;/ options = ("Yes, I want to continue viewing other paintings", "No, I don't want to view more paintings")&lt;br/&gt;/ optionvalues = ("1", "0")&lt;br/&gt;/ position = (25%, 40%)&lt;br/&gt;&amp;lt;/radiobuttons&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;radiobuttons endask&amp;gt;&lt;br/&gt;/ options = ("Show me other paintings", "End Task")&lt;br/&gt;/ optionvalues = ("1", "0")&lt;br/&gt;/ position = (35%, 65%)&lt;br/&gt;&amp;lt;/radiobuttons&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage init&amp;gt;&lt;br/&gt;/ stimulustimes = [1=blank]&lt;br/&gt;/ response = noresponse&lt;br/&gt;/ branch = [surveypage.choice]&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage choice&amp;gt;&lt;br/&gt;/stimulustimes = [1=noreplace (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,&lt;br/&gt;50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110)]&lt;br/&gt;/questions = [1=choose]&lt;br/&gt;/backlabel = "Back"&lt;br/&gt;/finishlabel = "Continue"&lt;br/&gt;/ backbuttonposition = (13%, 85%)&lt;br/&gt;/nextbuttonposition = (75%, 85%)&lt;br/&gt;/showpagenumbers = false&lt;br/&gt;/ showquestionnumbers = false&lt;br/&gt;/ branch = [if (radiobuttons.choose.response == 1) surveypage.ask]&lt;br/&gt;/branch = [if(radiobuttons.choose.response==0) surveypage.choice]&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage ask&amp;gt;&lt;br/&gt;/ caption = "You have chosen a painting which you think has the highest price.&lt;br/&gt;&lt;br/&gt;Although you cannot change your decision, would you like to continue viewing other paintings?"&lt;br/&gt;/questions = [1=ask]&lt;br/&gt;/showbackbutton = false&lt;br/&gt;/showquestionnumbers = false&lt;br/&gt;/showpagenumbers = false&lt;br/&gt;/nextbuttonposition = (75%, 85%)&lt;br/&gt;/branch = [if (radiobuttons.ask.response==1) surveypage.end]&lt;br/&gt;/branch = [if (radiobuttons.ask.response==0) surveypage.endtask]&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage endtask&amp;gt;&lt;br/&gt;/caption = "You have now completed this task. Please click the finish button to proceed to the next task"&lt;br/&gt;/showbackbutton = false&lt;br/&gt;/showpagenumbers = false&lt;br/&gt;/showquestionnumbers = false&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage end&amp;gt;&lt;br/&gt;/stimulustimes = [1=noreplace (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,&lt;br/&gt;50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110)]&lt;br/&gt;/questions = [1=endask]&lt;br/&gt;/showpagenumbers = false&lt;br/&gt;/showquestionnumbers = false&lt;br/&gt;/backlabel = "Back"&lt;br/&gt;/finishlabel = "Continue"&lt;br/&gt;/branch = [if(radiobuttons.endask.response==0) surveypage.endtask]&lt;br/&gt;/branch = [if(radiobuttons.endask.response==1) surveypage.end]&lt;br/&gt;&lt;br/&gt;&amp;lt;survey test&amp;gt;&lt;br/&gt;/ pages = [1=init]&lt;br/&gt;&lt;br/&gt;Will greatly appreciate any help on this matter! Thank you so much!&lt;br/&gt;&lt;br/&gt;Best,&lt;br/&gt;Jace&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="23943"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Won't work in the way you set this up. What you need to do is set up a _single_ &amp;lt;picture&amp;gt; element, with all the 110 images as its /items. Then, select a random item number at the start of each surveypage. In addition, you need to record the sequence of item numbers in a &amp;lt;list&amp;gt;. Then, when someone goes back, you need to retrieve the previous item number from that &amp;lt;list&amp;gt; instead of selecting a new, random item number.&lt;br/&gt;&lt;br/&gt;The easier, but more verbose option would be to create a separate &amp;lt;surveypage&amp;gt; for _each_ image. Then just randomize the order of the surveypages.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="23951"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Hi Dave,&lt;br/&gt;&lt;br/&gt;Thanks so much for the solution. I actually tried using &amp;lt;list&amp;gt; before but I gave up on that way as I wasn't sure how I can record the sequence of item numbers in the &amp;lt;list&amp;gt; and retrieve the previous item number from the list when participants press the "back" button. How do I go about doing this?&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="23956"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Come to think of it, instead of recording the sequence as you go through the survey, I think it's actually easier to setup a random sequence at the start, and then just step through it (moving back and forth between item numbers). I.e. something like this:&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ blocks = [1=setup_sequence; 2=mysurvey]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;// sets up a random sequence of item numbers&lt;br/&gt;&amp;lt;block setup_sequence&amp;gt;&lt;br/&gt;/ trials = [1-11 = seqtrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial seqtrial&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; list.itemnumber_sequence.appenditem(list.itemnumbers.nextindex);&lt;br/&gt;]&lt;br/&gt;/ trialduration = 0&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;// there are 11 items in this example&lt;br/&gt;&amp;lt;list itemnumbers&amp;gt;&lt;br/&gt;/ poolsize = 11&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list itemnumber_sequence&amp;gt;&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;// step through the sequence moving back and forth according to the page number&lt;br/&gt;&amp;lt;survey mysurvey&amp;gt;&lt;br/&gt;/ pages = [1-11 = mypage]&lt;br/&gt;&amp;lt;/survey&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage mypage&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; values.itemnumber = list.itemnumber_sequence.item(survey.mysurvey.currentpagenumber)&lt;br/&gt;]&lt;br/&gt;/ stimulusframes = [1=mystimulus]&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ itemnumber = 1&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text mystimulus&amp;gt;&lt;br/&gt;/ items = mystimuli&lt;br/&gt;/ select = values.itemnumber&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item mystimuli&amp;gt;&lt;br/&gt;/ 1 = "a.jpg"&lt;br/&gt;/ 2 = "b.jpg"&lt;br/&gt;/ 3 = "c.jpg"&lt;br/&gt;/ 4 = "d.jpg"&lt;br/&gt;/ 5 = "e.jpg"&lt;br/&gt;/ 6 = "f.jpg"&lt;br/&gt;/ 7 = "g.jpg"&lt;br/&gt;/ 8 = "h.jpg"&lt;br/&gt;/ 9 = "j.jpg"&lt;br/&gt;/ 10 = "k.jpg"&lt;br/&gt;/ 11 = "l.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="23957"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Hi Dave,&lt;br/&gt;&lt;br/&gt;That works! You're amazing, thank you so much!&lt;br/&gt;&lt;br/&gt;However, could you also show me how you would record the sequence through the survey and retrieve the sequence number from &amp;lt;list&amp;gt;? I'm trying to see if there's any way to create this study without using radiobuttons (or survey elements) because it will be easier for participants to make a choice and navigate with just using the keyboard.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="23959"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Like so:&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ blocks = [1=setup_sequence; 2=myblock]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;// sets up a random sequence of item numbers&lt;br/&gt;&amp;lt;block setup_sequence&amp;gt;&lt;br/&gt;/ trials = [1-11 = seqtrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial seqtrial&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; list.itemnumber_sequence.appenditem(list.itemnumbers.nextindex);&lt;br/&gt;]&lt;br/&gt;/ trialduration = 0&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;// there are 11 items in this example&lt;br/&gt;&amp;lt;list itemnumbers&amp;gt;&lt;br/&gt;/ poolsize = 11&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list itemnumber_sequence&amp;gt;&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;// step through the sequence moving back and forth according to the page number&lt;br/&gt;&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ trials = [1 = mytrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;//navigate back and forth using left and right arrow keys&lt;br/&gt;//indicate a choice using spacebar&lt;br/&gt;&amp;lt;trial mytrial&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; values.itemnumber = list.itemnumber_sequence.item(values.itemindex)&lt;br/&gt;]&lt;br/&gt;/ ontrialend = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (trial.mytrial.response == 203 &amp;amp;&amp;amp; values.itemindex &amp;gt; 1) values.itemindex -= 1;&lt;br/&gt;]&lt;br/&gt;/ ontrialend = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (trial.mytrial.response == 205 &amp;amp;&amp;amp; values.itemindex &amp;lt; 11) values.itemindex += 1;&lt;br/&gt;]&lt;br/&gt;/ stimulusframes = [1=mystimulus]&lt;br/&gt;/ validresponse = (203,205,57)&lt;br/&gt;/ branch = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (trial.mytrial.response != 57) trial.mytrial else trial.endtrial&lt;br/&gt;]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial endtrial&amp;gt;&lt;br/&gt;/ stimulusframes = [1=mystimulus, yourchoice]&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text yourchoice&amp;gt;&lt;br/&gt;/ items = ("You chose")&lt;br/&gt;/ position = (50%, 20%)&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ itemindex = 1&lt;br/&gt;/ itemnumber = 1&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text mystimulus&amp;gt;&lt;br/&gt;/ items = mystimuli&lt;br/&gt;/ select = values.itemnumber&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item mystimuli&amp;gt;&lt;br/&gt;/ 1 = "a.jpg"&lt;br/&gt;/ 2 = "b.jpg"&lt;br/&gt;/ 3 = "c.jpg"&lt;br/&gt;/ 4 = "d.jpg"&lt;br/&gt;/ 5 = "e.jpg"&lt;br/&gt;/ 6 = "f.jpg"&lt;br/&gt;/ 7 = "g.jpg"&lt;br/&gt;/ 8 = "h.jpg"&lt;br/&gt;/ 9 = "j.jpg"&lt;br/&gt;/ 10 = "k.jpg"&lt;br/&gt;/ 11 = "l.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;</description><pubDate>Tue, 06 Mar 2018 10:00:34 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Showing previous trials in a randomised-trials experiment</title><link>https://forums.millisecond.com/Topic23959.aspx</link><description>&lt;div data-id="23957" class="if-quote-wrapper" unselectable="on" data-guid="1520320313214"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="23957" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="23957" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="23957" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, March 5, 2018&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-23957"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="23956" class="if-quote-wrapper" unselectable="on" data-guid="1520320313214"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="23956" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="23956" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="23956" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;labdurian - Monday, March 5, 2018&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-23956"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="23951" class="if-quote-wrapper" unselectable="on" data-guid="1520320313214"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="23951" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="23951" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="23951" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, March 5, 2018&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-23951"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="23943" class="if-quote-wrapper" unselectable="on" data-guid="1520320313214"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="23943" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="23943" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="23943" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;labdurian - Saturday, March 3, 2018&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-23943"&gt;&lt;div class="if-quote-message-margin"&gt;Dear all,&lt;br/&gt;&lt;br/&gt;I'm trying to create a task in which participants can view many different pictures and choose one picture when they decide to. This meant that I want them to be able to freely click "Back" to view the previous picture, and "Continue" to view the next picture. I have 110 pictures, and when participants decide which painting they want to choose, they can either continue to view other pictures or end the task. I have been able to achieve all the procedures I want except that when participants clicked on "Back", they were not shown the previous picture, rather it was a new, randomly chosen, picture.&lt;br/&gt;&lt;br/&gt;Does anyone know how I can display the previous picture when participants click on "Back"?&lt;br/&gt;&lt;br/&gt;Below are the script that I have right now:&lt;br/&gt;&lt;br/&gt;&amp;lt;radiobuttons choose&amp;gt;&lt;br/&gt;/ options = ("This painting has the highest price", "Continue viewing other paintings")&lt;br/&gt;/ optionvalues = ("1", "0")&lt;br/&gt;/ validresponse = ("1","0")&lt;br/&gt;/ position = (35%, 65%)&lt;br/&gt;&amp;lt;/radiobuttons&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;radiobuttons ask&amp;gt;&lt;br/&gt;/ options = ("Yes, I want to continue viewing other paintings", "No, I don't want to view more paintings")&lt;br/&gt;/ optionvalues = ("1", "0")&lt;br/&gt;/ position = (25%, 40%)&lt;br/&gt;&amp;lt;/radiobuttons&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;radiobuttons endask&amp;gt;&lt;br/&gt;/ options = ("Show me other paintings", "End Task")&lt;br/&gt;/ optionvalues = ("1", "0")&lt;br/&gt;/ position = (35%, 65%)&lt;br/&gt;&amp;lt;/radiobuttons&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage init&amp;gt;&lt;br/&gt;/ stimulustimes = [1=blank]&lt;br/&gt;/ response = noresponse&lt;br/&gt;/ branch = [surveypage.choice]&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage choice&amp;gt;&lt;br/&gt;/stimulustimes = [1=noreplace (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,&lt;br/&gt;50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110)]&lt;br/&gt;/questions = [1=choose]&lt;br/&gt;/backlabel = "Back"&lt;br/&gt;/finishlabel = "Continue"&lt;br/&gt;/ backbuttonposition = (13%, 85%)&lt;br/&gt;/nextbuttonposition = (75%, 85%)&lt;br/&gt;/showpagenumbers = false&lt;br/&gt;/ showquestionnumbers = false&lt;br/&gt;/ branch = [if (radiobuttons.choose.response == 1) surveypage.ask]&lt;br/&gt;/branch = [if(radiobuttons.choose.response==0) surveypage.choice]&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage ask&amp;gt;&lt;br/&gt;/ caption = "You have chosen a painting which you think has the highest price.&lt;br/&gt;&lt;br/&gt;Although you cannot change your decision, would you like to continue viewing other paintings?"&lt;br/&gt;/questions = [1=ask]&lt;br/&gt;/showbackbutton = false&lt;br/&gt;/showquestionnumbers = false&lt;br/&gt;/showpagenumbers = false&lt;br/&gt;/nextbuttonposition = (75%, 85%)&lt;br/&gt;/branch = [if (radiobuttons.ask.response==1) surveypage.end]&lt;br/&gt;/branch = [if (radiobuttons.ask.response==0) surveypage.endtask]&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage endtask&amp;gt;&lt;br/&gt;/caption = "You have now completed this task. Please click the finish button to proceed to the next task"&lt;br/&gt;/showbackbutton = false&lt;br/&gt;/showpagenumbers = false&lt;br/&gt;/showquestionnumbers = false&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage end&amp;gt;&lt;br/&gt;/stimulustimes = [1=noreplace (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,&lt;br/&gt;50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110)]&lt;br/&gt;/questions = [1=endask]&lt;br/&gt;/showpagenumbers = false&lt;br/&gt;/showquestionnumbers = false&lt;br/&gt;/backlabel = "Back"&lt;br/&gt;/finishlabel = "Continue"&lt;br/&gt;/branch = [if(radiobuttons.endask.response==0) surveypage.endtask]&lt;br/&gt;/branch = [if(radiobuttons.endask.response==1) surveypage.end]&lt;br/&gt;&lt;br/&gt;&amp;lt;survey test&amp;gt;&lt;br/&gt;/ pages = [1=init]&lt;br/&gt;&lt;br/&gt;Will greatly appreciate any help on this matter! Thank you so much!&lt;br/&gt;&lt;br/&gt;Best,&lt;br/&gt;Jace&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="23943"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Won't work in the way you set this up. What you need to do is set up a _single_ &amp;lt;picture&amp;gt; element, with all the 110 images as its /items. Then, select a random item number at the start of each surveypage. In addition, you need to record the sequence of item numbers in a &amp;lt;list&amp;gt;. Then, when someone goes back, you need to retrieve the previous item number from that &amp;lt;list&amp;gt; instead of selecting a new, random item number.&lt;br/&gt;&lt;br/&gt;The easier, but more verbose option would be to create a separate &amp;lt;surveypage&amp;gt; for _each_ image. Then just randomize the order of the surveypages.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="23951"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Hi Dave,&lt;br/&gt;&lt;br/&gt;Thanks so much for the solution. I actually tried using &amp;lt;list&amp;gt; before but I gave up on that way as I wasn't sure how I can record the sequence of item numbers in the &amp;lt;list&amp;gt; and retrieve the previous item number from the list when participants press the "back" button. How do I go about doing this?&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="23956"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Come to think of it, instead of recording the sequence as you go through the survey, I think it's actually easier to setup a random sequence at the start, and then just step through it (moving back and forth between item numbers). I.e. something like this:&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ blocks = [1=setup_sequence; 2=mysurvey]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;// sets up a random sequence of item numbers&lt;br/&gt;&amp;lt;block setup_sequence&amp;gt;&lt;br/&gt;/ trials = [1-11 = seqtrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial seqtrial&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; list.itemnumber_sequence.appenditem(list.itemnumbers.nextindex);&lt;br/&gt;]&lt;br/&gt;/ trialduration = 0&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;// there are 11 items in this example&lt;br/&gt;&amp;lt;list itemnumbers&amp;gt;&lt;br/&gt;/ poolsize = 11&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list itemnumber_sequence&amp;gt;&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;// step through the sequence moving back and forth according to the page number&lt;br/&gt;&amp;lt;survey mysurvey&amp;gt;&lt;br/&gt;/ pages = [1-11 = mypage]&lt;br/&gt;&amp;lt;/survey&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage mypage&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; values.itemnumber = list.itemnumber_sequence.item(survey.mysurvey.currentpagenumber)&lt;br/&gt;]&lt;br/&gt;/ stimulusframes = [1=mystimulus]&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ itemnumber = 1&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text mystimulus&amp;gt;&lt;br/&gt;/ items = mystimuli&lt;br/&gt;/ select = values.itemnumber&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item mystimuli&amp;gt;&lt;br/&gt;/ 1 = "a.jpg"&lt;br/&gt;/ 2 = "b.jpg"&lt;br/&gt;/ 3 = "c.jpg"&lt;br/&gt;/ 4 = "d.jpg"&lt;br/&gt;/ 5 = "e.jpg"&lt;br/&gt;/ 6 = "f.jpg"&lt;br/&gt;/ 7 = "g.jpg"&lt;br/&gt;/ 8 = "h.jpg"&lt;br/&gt;/ 9 = "j.jpg"&lt;br/&gt;/ 10 = "k.jpg"&lt;br/&gt;/ 11 = "l.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="23957"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Hi Dave,&lt;br/&gt;&lt;br/&gt;That works! You're amazing, thank you so much!&lt;br/&gt;&lt;br/&gt;However, could you also show me how you would record the sequence through the survey and retrieve the sequence number from &amp;lt;list&amp;gt;? I'm trying to see if there's any way to create this study without using radiobuttons (or survey elements) because it will be easier for participants to make a choice and navigate with just using the keyboard.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Mon, 05 Mar 2018 23:18:09 GMT</pubDate><dc:creator>labdurian</dc:creator></item><item><title>RE: Showing previous trials in a randomised-trials experiment</title><link>https://forums.millisecond.com/Topic23957.aspx</link><description>&lt;div data-id="23956" class="if-quote-wrapper" unselectable="on" data-guid="1520313369208"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="23956" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="23956" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="23956" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;labdurian - Monday, March 5, 2018&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-23956"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="23951" class="if-quote-wrapper" unselectable="on" data-guid="1520313369208"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="23951" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="23951" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="23951" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, March 5, 2018&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-23951"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="23943" class="if-quote-wrapper" unselectable="on" data-guid="1520313369208"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="23943" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="23943" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="23943" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;labdurian - Saturday, March 3, 2018&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-23943"&gt;&lt;div class="if-quote-message-margin"&gt;Dear all,&lt;br/&gt;&lt;br/&gt;I'm trying to create a task in which participants can view many different pictures and choose one picture when they decide to. This meant that I want them to be able to freely click "Back" to view the previous picture, and "Continue" to view the next picture. I have 110 pictures, and when participants decide which painting they want to choose, they can either continue to view other pictures or end the task. I have been able to achieve all the procedures I want except that when participants clicked on "Back", they were not shown the previous picture, rather it was a new, randomly chosen, picture.&lt;br/&gt;&lt;br/&gt;Does anyone know how I can display the previous picture when participants click on "Back"?&lt;br/&gt;&lt;br/&gt;Below are the script that I have right now:&lt;br/&gt;&lt;br/&gt;&amp;lt;radiobuttons choose&amp;gt;&lt;br/&gt;/ options = ("This painting has the highest price", "Continue viewing other paintings")&lt;br/&gt;/ optionvalues = ("1", "0")&lt;br/&gt;/ validresponse = ("1","0")&lt;br/&gt;/ position = (35%, 65%)&lt;br/&gt;&amp;lt;/radiobuttons&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;radiobuttons ask&amp;gt;&lt;br/&gt;/ options = ("Yes, I want to continue viewing other paintings", "No, I don't want to view more paintings")&lt;br/&gt;/ optionvalues = ("1", "0")&lt;br/&gt;/ position = (25%, 40%)&lt;br/&gt;&amp;lt;/radiobuttons&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;radiobuttons endask&amp;gt;&lt;br/&gt;/ options = ("Show me other paintings", "End Task")&lt;br/&gt;/ optionvalues = ("1", "0")&lt;br/&gt;/ position = (35%, 65%)&lt;br/&gt;&amp;lt;/radiobuttons&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage init&amp;gt;&lt;br/&gt;/ stimulustimes = [1=blank]&lt;br/&gt;/ response = noresponse&lt;br/&gt;/ branch = [surveypage.choice]&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage choice&amp;gt;&lt;br/&gt;/stimulustimes = [1=noreplace (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,&lt;br/&gt;50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110)]&lt;br/&gt;/questions = [1=choose]&lt;br/&gt;/backlabel = "Back"&lt;br/&gt;/finishlabel = "Continue"&lt;br/&gt;/ backbuttonposition = (13%, 85%)&lt;br/&gt;/nextbuttonposition = (75%, 85%)&lt;br/&gt;/showpagenumbers = false&lt;br/&gt;/ showquestionnumbers = false&lt;br/&gt;/ branch = [if (radiobuttons.choose.response == 1) surveypage.ask]&lt;br/&gt;/branch = [if(radiobuttons.choose.response==0) surveypage.choice]&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage ask&amp;gt;&lt;br/&gt;/ caption = "You have chosen a painting which you think has the highest price.&lt;br/&gt;&lt;br/&gt;Although you cannot change your decision, would you like to continue viewing other paintings?"&lt;br/&gt;/questions = [1=ask]&lt;br/&gt;/showbackbutton = false&lt;br/&gt;/showquestionnumbers = false&lt;br/&gt;/showpagenumbers = false&lt;br/&gt;/nextbuttonposition = (75%, 85%)&lt;br/&gt;/branch = [if (radiobuttons.ask.response==1) surveypage.end]&lt;br/&gt;/branch = [if (radiobuttons.ask.response==0) surveypage.endtask]&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage endtask&amp;gt;&lt;br/&gt;/caption = "You have now completed this task. Please click the finish button to proceed to the next task"&lt;br/&gt;/showbackbutton = false&lt;br/&gt;/showpagenumbers = false&lt;br/&gt;/showquestionnumbers = false&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage end&amp;gt;&lt;br/&gt;/stimulustimes = [1=noreplace (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,&lt;br/&gt;50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110)]&lt;br/&gt;/questions = [1=endask]&lt;br/&gt;/showpagenumbers = false&lt;br/&gt;/showquestionnumbers = false&lt;br/&gt;/backlabel = "Back"&lt;br/&gt;/finishlabel = "Continue"&lt;br/&gt;/branch = [if(radiobuttons.endask.response==0) surveypage.endtask]&lt;br/&gt;/branch = [if(radiobuttons.endask.response==1) surveypage.end]&lt;br/&gt;&lt;br/&gt;&amp;lt;survey test&amp;gt;&lt;br/&gt;/ pages = [1=init]&lt;br/&gt;&lt;br/&gt;Will greatly appreciate any help on this matter! Thank you so much!&lt;br/&gt;&lt;br/&gt;Best,&lt;br/&gt;Jace&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="23943"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Won't work in the way you set this up. What you need to do is set up a _single_ &amp;lt;picture&amp;gt; element, with all the 110 images as its /items. Then, select a random item number at the start of each surveypage. In addition, you need to record the sequence of item numbers in a &amp;lt;list&amp;gt;. Then, when someone goes back, you need to retrieve the previous item number from that &amp;lt;list&amp;gt; instead of selecting a new, random item number.&lt;br/&gt;&lt;br/&gt;The easier, but more verbose option would be to create a separate &amp;lt;surveypage&amp;gt; for _each_ image. Then just randomize the order of the surveypages.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="23951"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Hi Dave,&lt;br/&gt;&lt;br/&gt;Thanks so much for the solution. I actually tried using &amp;lt;list&amp;gt; before but I gave up on that way as I wasn't sure how I can record the sequence of item numbers in the &amp;lt;list&amp;gt; and retrieve the previous item number from the list when participants press the "back" button. How do I go about doing this?&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="23956"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Come to think of it, instead of recording the sequence as you go through the survey, I think it's actually easier to setup a random sequence at the start, and then just step through it (moving back and forth between item numbers). I.e. something like this:&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ blocks = [1=setup_sequence; 2=mysurvey]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;// sets up a random sequence of item numbers&lt;br/&gt;&amp;lt;block setup_sequence&amp;gt;&lt;br/&gt;/ trials = [1-11 = seqtrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial seqtrial&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; list.itemnumber_sequence.appenditem(list.itemnumbers.nextindex);&lt;br/&gt;]&lt;br/&gt;/ trialduration = 0&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;// there are 11 items in this example&lt;br/&gt;&amp;lt;list itemnumbers&amp;gt;&lt;br/&gt;/ poolsize = 11&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;list itemnumber_sequence&amp;gt;&lt;br/&gt;&amp;lt;/list&amp;gt;&lt;br/&gt;&lt;br/&gt;// step through the sequence moving back and forth according to the page number&lt;br/&gt;&amp;lt;survey mysurvey&amp;gt;&lt;br/&gt;/ pages = [1-11 = mypage]&lt;br/&gt;&amp;lt;/survey&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage mypage&amp;gt;&lt;br/&gt;/ ontrialbegin = [&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; values.itemnumber = list.itemnumber_sequence.item(survey.mysurvey.currentpagenumber)&lt;br/&gt;]&lt;br/&gt;/ stimulusframes = [1=mystimulus]&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;values&amp;gt;&lt;br/&gt;/ itemnumber = 1&lt;br/&gt;&amp;lt;/values&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text mystimulus&amp;gt;&lt;br/&gt;/ items = mystimuli&lt;br/&gt;/ select = values.itemnumber&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;item mystimuli&amp;gt;&lt;br/&gt;/ 1 = "a.jpg"&lt;br/&gt;/ 2 = "b.jpg"&lt;br/&gt;/ 3 = "c.jpg"&lt;br/&gt;/ 4 = "d.jpg"&lt;br/&gt;/ 5 = "e.jpg"&lt;br/&gt;/ 6 = "f.jpg"&lt;br/&gt;/ 7 = "g.jpg"&lt;br/&gt;/ 8 = "h.jpg"&lt;br/&gt;/ 9 = "j.jpg"&lt;br/&gt;/ 10 = "k.jpg"&lt;br/&gt;/ 11 = "l.jpg"&lt;br/&gt;&amp;lt;/item&amp;gt;&lt;br/&gt;&lt;br/&gt;</description><pubDate>Mon, 05 Mar 2018 21:19:17 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Showing previous trials in a randomised-trials experiment</title><link>https://forums.millisecond.com/Topic23956.aspx</link><description>&lt;div data-id="23951" class="if-quote-wrapper" unselectable="on" data-guid="1520303395716"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="23951" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="23951" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="23951" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Dave - Monday, March 5, 2018&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-23951"&gt;&lt;div class="if-quote-message-margin"&gt;&lt;div data-id="23943" class="if-quote-wrapper" unselectable="on" data-guid="1520303395716"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="23943" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="23943" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="23943" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;labdurian - Saturday, March 3, 2018&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-23943"&gt;&lt;div class="if-quote-message-margin"&gt;Dear all,&lt;br/&gt;&lt;br/&gt;I'm trying to create a task in which participants can view many different pictures and choose one picture when they decide to. This meant that I want them to be able to freely click "Back" to view the previous picture, and "Continue" to view the next picture. I have 110 pictures, and when participants decide which painting they want to choose, they can either continue to view other pictures or end the task. I have been able to achieve all the procedures I want except that when participants clicked on "Back", they were not shown the previous picture, rather it was a new, randomly chosen, picture.&lt;br/&gt;&lt;br/&gt;Does anyone know how I can display the previous picture when participants click on "Back"?&lt;br/&gt;&lt;br/&gt;Below are the script that I have right now:&lt;br/&gt;&lt;br/&gt;&amp;lt;radiobuttons choose&amp;gt;&lt;br/&gt;/ options = ("This painting has the highest price", "Continue viewing other paintings")&lt;br/&gt;/ optionvalues = ("1", "0")&lt;br/&gt;/ validresponse = ("1","0")&lt;br/&gt;/ position = (35%, 65%)&lt;br/&gt;&amp;lt;/radiobuttons&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;radiobuttons ask&amp;gt;&lt;br/&gt;/ options = ("Yes, I want to continue viewing other paintings", "No, I don't want to view more paintings")&lt;br/&gt;/ optionvalues = ("1", "0")&lt;br/&gt;/ position = (25%, 40%)&lt;br/&gt;&amp;lt;/radiobuttons&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;radiobuttons endask&amp;gt;&lt;br/&gt;/ options = ("Show me other paintings", "End Task")&lt;br/&gt;/ optionvalues = ("1", "0")&lt;br/&gt;/ position = (35%, 65%)&lt;br/&gt;&amp;lt;/radiobuttons&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage init&amp;gt;&lt;br/&gt;/ stimulustimes = [1=blank]&lt;br/&gt;/ response = noresponse&lt;br/&gt;/ branch = [surveypage.choice]&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage choice&amp;gt;&lt;br/&gt;/stimulustimes = [1=noreplace (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,&lt;br/&gt;50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110)]&lt;br/&gt;/questions = [1=choose]&lt;br/&gt;/backlabel = "Back"&lt;br/&gt;/finishlabel = "Continue"&lt;br/&gt;/ backbuttonposition = (13%, 85%)&lt;br/&gt;/nextbuttonposition = (75%, 85%)&lt;br/&gt;/showpagenumbers = false&lt;br/&gt;/ showquestionnumbers = false&lt;br/&gt;/ branch = [if (radiobuttons.choose.response == 1) surveypage.ask]&lt;br/&gt;/branch = [if(radiobuttons.choose.response==0) surveypage.choice]&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage ask&amp;gt;&lt;br/&gt;/ caption = "You have chosen a painting which you think has the highest price.&lt;br/&gt;&lt;br/&gt;Although you cannot change your decision, would you like to continue viewing other paintings?"&lt;br/&gt;/questions = [1=ask]&lt;br/&gt;/showbackbutton = false&lt;br/&gt;/showquestionnumbers = false&lt;br/&gt;/showpagenumbers = false&lt;br/&gt;/nextbuttonposition = (75%, 85%)&lt;br/&gt;/branch = [if (radiobuttons.ask.response==1) surveypage.end]&lt;br/&gt;/branch = [if (radiobuttons.ask.response==0) surveypage.endtask]&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage endtask&amp;gt;&lt;br/&gt;/caption = "You have now completed this task. Please click the finish button to proceed to the next task"&lt;br/&gt;/showbackbutton = false&lt;br/&gt;/showpagenumbers = false&lt;br/&gt;/showquestionnumbers = false&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage end&amp;gt;&lt;br/&gt;/stimulustimes = [1=noreplace (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,&lt;br/&gt;50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110)]&lt;br/&gt;/questions = [1=endask]&lt;br/&gt;/showpagenumbers = false&lt;br/&gt;/showquestionnumbers = false&lt;br/&gt;/backlabel = "Back"&lt;br/&gt;/finishlabel = "Continue"&lt;br/&gt;/branch = [if(radiobuttons.endask.response==0) surveypage.endtask]&lt;br/&gt;/branch = [if(radiobuttons.endask.response==1) surveypage.end]&lt;br/&gt;&lt;br/&gt;&amp;lt;survey test&amp;gt;&lt;br/&gt;/ pages = [1=init]&lt;br/&gt;&lt;br/&gt;Will greatly appreciate any help on this matter! Thank you so much!&lt;br/&gt;&lt;br/&gt;Best,&lt;br/&gt;Jace&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="23943"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Won't work in the way you set this up. What you need to do is set up a _single_ &amp;lt;picture&amp;gt; element, with all the 110 images as its /items. Then, select a random item number at the start of each surveypage. In addition, you need to record the sequence of item numbers in a &amp;lt;list&amp;gt;. Then, when someone goes back, you need to retrieve the previous item number from that &amp;lt;list&amp;gt; instead of selecting a new, random item number.&lt;br/&gt;&lt;br/&gt;The easier, but more verbose option would be to create a separate &amp;lt;surveypage&amp;gt; for _each_ image. Then just randomize the order of the surveypages.&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="23951"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Hi Dave,&lt;br/&gt;&lt;br/&gt;Thanks so much for the solution. I actually tried using &amp;lt;list&amp;gt; before but I gave up on that way as I wasn't sure how I can record the sequence of item numbers in the &amp;lt;list&amp;gt; and retrieve the previous item number from the list when participants press the "back" button. How do I go about doing this?&lt;br/&gt;&lt;br/&gt;</description><pubDate>Mon, 05 Mar 2018 18:36:46 GMT</pubDate><dc:creator>labdurian</dc:creator></item><item><title>RE: Showing previous trials in a randomised-trials experiment</title><link>https://forums.millisecond.com/Topic23951.aspx</link><description>&lt;div data-id="23943" class="if-quote-wrapper" unselectable="on" data-guid="1520274384112"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="23943" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="23943" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="23943" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;labdurian - Saturday, March 3, 2018&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-23943"&gt;&lt;div class="if-quote-message-margin"&gt;Dear all,&lt;br/&gt;&lt;br/&gt;I'm trying to create a task in which participants can view many different pictures and choose one picture when they decide to. This meant that I want them to be able to freely click "Back" to view the previous picture, and "Continue" to view the next picture. I have 110 pictures, and when participants decide which painting they want to choose, they can either continue to view other pictures or end the task. I have been able to achieve all the procedures I want except that when participants clicked on "Back", they were not shown the previous picture, rather it was a new, randomly chosen, picture.&lt;br/&gt;&lt;br/&gt;Does anyone know how I can display the previous picture when participants click on "Back"?&lt;br/&gt;&lt;br/&gt;Below are the script that I have right now:&lt;br/&gt;&lt;br/&gt;&amp;lt;radiobuttons choose&amp;gt;&lt;br/&gt;/ options = ("This painting has the highest price", "Continue viewing other paintings")&lt;br/&gt;/ optionvalues = ("1", "0")&lt;br/&gt;/ validresponse = ("1","0")&lt;br/&gt;/ position = (35%, 65%)&lt;br/&gt;&amp;lt;/radiobuttons&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;radiobuttons ask&amp;gt;&lt;br/&gt;/ options = ("Yes, I want to continue viewing other paintings", "No, I don't want to view more paintings")&lt;br/&gt;/ optionvalues = ("1", "0")&lt;br/&gt;/ position = (25%, 40%)&lt;br/&gt;&amp;lt;/radiobuttons&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;radiobuttons endask&amp;gt;&lt;br/&gt;/ options = ("Show me other paintings", "End Task")&lt;br/&gt;/ optionvalues = ("1", "0")&lt;br/&gt;/ position = (35%, 65%)&lt;br/&gt;&amp;lt;/radiobuttons&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage init&amp;gt;&lt;br/&gt;/ stimulustimes = [1=blank]&lt;br/&gt;/ response = noresponse&lt;br/&gt;/ branch = [surveypage.choice]&lt;br/&gt;/ recorddata = false&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage choice&amp;gt;&lt;br/&gt;/stimulustimes = [1=noreplace (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,&lt;br/&gt;50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110)]&lt;br/&gt;/questions = [1=choose]&lt;br/&gt;/backlabel = "Back"&lt;br/&gt;/finishlabel = "Continue"&lt;br/&gt;/ backbuttonposition = (13%, 85%)&lt;br/&gt;/nextbuttonposition = (75%, 85%)&lt;br/&gt;/showpagenumbers = false&lt;br/&gt;/ showquestionnumbers = false&lt;br/&gt;/ branch = [if (radiobuttons.choose.response == 1) surveypage.ask]&lt;br/&gt;/branch = [if(radiobuttons.choose.response==0) surveypage.choice]&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage ask&amp;gt;&lt;br/&gt;/ caption = "You have chosen a painting which you think has the highest price.&lt;br/&gt;&lt;br/&gt;Although you cannot change your decision, would you like to continue viewing other paintings?"&lt;br/&gt;/questions = [1=ask]&lt;br/&gt;/showbackbutton = false&lt;br/&gt;/showquestionnumbers = false&lt;br/&gt;/showpagenumbers = false&lt;br/&gt;/nextbuttonposition = (75%, 85%)&lt;br/&gt;/branch = [if (radiobuttons.ask.response==1) surveypage.end]&lt;br/&gt;/branch = [if (radiobuttons.ask.response==0) surveypage.endtask]&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage endtask&amp;gt;&lt;br/&gt;/caption = "You have now completed this task. Please click the finish button to proceed to the next task"&lt;br/&gt;/showbackbutton = false&lt;br/&gt;/showpagenumbers = false&lt;br/&gt;/showquestionnumbers = false&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage end&amp;gt;&lt;br/&gt;/stimulustimes = [1=noreplace (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,&lt;br/&gt;50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110)]&lt;br/&gt;/questions = [1=endask]&lt;br/&gt;/showpagenumbers = false&lt;br/&gt;/showquestionnumbers = false&lt;br/&gt;/backlabel = "Back"&lt;br/&gt;/finishlabel = "Continue"&lt;br/&gt;/branch = [if(radiobuttons.endask.response==0) surveypage.endtask]&lt;br/&gt;/branch = [if(radiobuttons.endask.response==1) surveypage.end]&lt;br/&gt;&lt;br/&gt;&amp;lt;survey test&amp;gt;&lt;br/&gt;/ pages = [1=init]&lt;br/&gt;&lt;br/&gt;Will greatly appreciate any help on this matter! Thank you so much!&lt;br/&gt;&lt;br/&gt;Best,&lt;br/&gt;Jace&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="23943"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Won't work in the way you set this up. What you need to do is set up a _single_ &amp;lt;picture&amp;gt; element, with all the 110 images as its /items. Then, select a random item number at the start of each surveypage. In addition, you need to record the sequence of item numbers in a &amp;lt;list&amp;gt;. Then, when someone goes back, you need to retrieve the previous item number from that &amp;lt;list&amp;gt; instead of selecting a new, random item number.&lt;br/&gt;&lt;br/&gt;The easier, but more verbose option would be to create a separate &amp;lt;surveypage&amp;gt; for _each_ image. Then just randomize the order of the surveypages.&lt;br/&gt;</description><pubDate>Mon, 05 Mar 2018 10:31:13 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>