﻿<?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  » can I screen out participants</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Sun, 17 May 2026 18:27:08 GMT</lastBuildDate><ttl>20</ttl><item><title>can I screen out participants</title><link>https://forums.millisecond.com/Topic16837.aspx</link><description>Good Evening&lt;br/&gt;&lt;br/&gt;I need to redirect participants who don't fit certain demographic criteria at the beginning of the survey to a screen out page via a URL. Can anyone suggest a way that I can do this. I don't mind if the participant has to click the link themselves.&lt;br/&gt;&lt;br/&gt;Any ideas?&lt;br/&gt;&lt;br/&gt;Thanks&lt;br/&gt;Belinda.</description><pubDate>Wed, 12 Aug 2015 21:13:16 GMT</pubDate><dc:creator>BG_CQU</dc:creator></item><item><title>RE: can I screen out participants</title><link>https://forums.millisecond.com/Topic16952.aspx</link><description>Thanks!!&lt;br/&gt;&lt;br/&gt;You were right, I had not included the skip function to all other blocks.&lt;br/&gt;&lt;br/&gt;It's all up and running now. Thanks again for your help and patience.&lt;br/&gt;&lt;br/&gt;Belinda.</description><pubDate>Wed, 12 Aug 2015 21:13:16 GMT</pubDate><dc:creator>BG_CQU</dc:creator></item><item><title>RE: can I screen out participants</title><link>https://forums.millisecond.com/Topic16889.aspx</link><description>I can't tell you where the mistake/s is/are based on that snippet. It is too incomplete. &lt;br/&gt;&lt;br/&gt;If I were to hazard a guess, I'd say that you missed including or misspecified the /skip attributes in all the subsequent blocks:&lt;br/&gt;&lt;br/&gt;&amp;lt;block screen1&amp;gt;&lt;br/&gt;/ stop = [radiobuttons.consent.response=="No"]&lt;br/&gt;/ trials = [1=screenoutpage; 2=checktrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block taskblock&amp;gt;&lt;br/&gt;&lt;strong&gt;/ skip = [radiobuttons.consent.response=="No"]&lt;/strong&gt;&lt;br/&gt;/ trials = [1=tasktrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;Every &amp;lt;block&amp;gt; or &amp;lt;survey&amp;gt; in your script that follows &amp;lt;block screen1&amp;gt; needs to have that specified in order to *not* be run in case of a participant declining to give consent.&lt;br/&gt;</description><pubDate>Sun, 09 Aug 2015 03:24:29 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: can I screen out participants</title><link>https://forums.millisecond.com/Topic16888.aspx</link><description>Unfortunately still no luck with this :(&lt;br/&gt;&lt;br/&gt;The test worked fine, both online and my stand alone version. However, when I launched the new script onto the website (removing all the check text etc) the survey continues even when the respondent selects "no". Any other suggestions or did I mess up editing the syntax for the web? (see below)&lt;br/&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333330154419px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none;"&gt;Here is the experiment specified below (note the participants see a picture of the consent form first, then are asked 2 screen out question 1) consent (as discussed) and 2) over 18 (which I will cut, paste and edit the consent screen out syntax for), then they go onto the survey.&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333330154419px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none;"&gt;&amp;lt;expt&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333330154419px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none;"&gt;/ blocks = [1=consentpic; 2=screen1; 3=screen2; 4= Survey; 5=block1; 6=block2; 7=block3; 8=block4; 9=block5; 10=block6; 11=block7; 12=block8; 13=block9; 14=block10; 15=block11; 16=block12; 17=block13; 18=block14; 19=block15; 20=block16; 21=block17]&lt;/span&gt;&lt;br/&gt;&lt;span style="color: rgb(34, 34, 34); font-family: arial, tahoma; font-size: 13.3333330154419px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 24px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none;"&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;/span&gt;&lt;br/&gt;And here is the screen out syntax I used for the consent screen out.&lt;br/&gt;&lt;br/&gt;&amp;lt;block screen1&amp;gt;&lt;br/&gt;/ stop = [radiobuttons.consent.response=="No"]&lt;br/&gt;/ trials = [1=screenoutpage]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage screenoutpage&amp;gt;&lt;br/&gt;/ ontrialend = [if(radiobuttons.consent.response=="No") {defaults.finishpage=text.screenouturl.item.1;}]&lt;br/&gt;/ questions = [1=consent]&lt;br/&gt;/ showpagenumbers = false&lt;br/&gt;/ showquestionnumbers = false&lt;br/&gt;/ finishlabel = "Next"&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text screenouturl&amp;gt;&lt;br/&gt;/ items = ("&lt;a href="http://www.myopinions.com.au/Surveys/RewardSurvey.aspx?codes=spsqiogaap&amp;amp;id=&amp;lt;%script.subjectid%&amp;gt;")"&gt;http://www.myopinions.com.au/Surveys/RewardSurvey.aspx?codes=spsqiogaap&amp;amp;id=&amp;lt;%script.subjectid%&amp;gt;")&lt;/a&gt;&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;radiobuttons consent&amp;gt;&lt;br/&gt;/caption = "I have read and understood the information sheet and agree to participate in the study"&lt;br/&gt;/ options = ("No","Yes")&lt;br/&gt;/required = true&lt;br/&gt;/orientation = vertical&lt;br/&gt;&amp;lt;/radiobuttons&amp;gt;&lt;br/&gt;&lt;br/&gt;Thanks again for all your help...and your patience!&lt;br/&gt;&lt;br/&gt;Bel.</description><pubDate>Fri, 07 Aug 2015 22:31:27 GMT</pubDate><dc:creator>BG_CQU</dc:creator></item><item><title>RE: can I screen out participants</title><link>https://forums.millisecond.com/Topic16887.aspx</link><description>Hmm, I think this may be a side effect of using the abort() function under certain circumstances. Okay, different approach without using abort(). Use /stop and /skip attributes in your &amp;lt;block&amp;gt;s to prevent them from running in case the participant responds "No" on the consent question. I.e.&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ blocks = [1=screen1; 2=taskblock]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block screen1&amp;gt;&lt;br/&gt;/ stop = [radiobuttons.consent.response=="No"]&lt;br/&gt;/ trials = [1=screenoutpage; 2=checktrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block taskblock&amp;gt;&lt;br/&gt;/ skip = [radiobuttons.consent.response=="No"]&lt;br/&gt;/ trials = [1=tasktrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage screenoutpage&amp;gt;&lt;br/&gt;/ ontrialend = [if(radiobuttons.consent.response=="No") {defaults.finishpage=text.screenouturl.item.1;}]&lt;br/&gt;/ questions = [1=consent]&lt;br/&gt;/ showpagenumbers = false&lt;br/&gt;/ showquestionnumbers = false&lt;br/&gt;/ finishlabel = "Next"&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text screenouturl&amp;gt;&lt;br/&gt;/ items = ("&lt;a href="http://www.myopinions.com.au/Surveys/RewardSurvey.aspx?codes=spsqiogaap&amp;amp;id=&amp;lt;%script.subjectid%&amp;gt;")"&gt;http://www.myopinions.com.au/Surveys/RewardSurvey.aspx?codes=spsqiogaap&amp;amp;id=&amp;lt;%script.subjectid%&amp;gt;")&lt;/a&gt;&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;radiobuttons consent&amp;gt;&lt;br/&gt;/caption = "I have read and understood the information sheet and agree to participate in the study"&lt;br/&gt;/ options = ("No","Yes")&lt;br/&gt;/required = true&lt;br/&gt;/orientation = vertical&lt;br/&gt;&amp;lt;/radiobuttons&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial checktrial&amp;gt;&lt;br/&gt;/ stimulusframes = [1=checktext]&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial tasktrial&amp;gt;&lt;br/&gt;/ stimulusframes = [1=tasktext]&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text checktext&amp;gt;&lt;br/&gt;/ items = ("The consent response was &amp;lt;%radiobuttons.consent.response%&amp;gt;. If you selected 'No' on the previous page, you should not be seeing this.")&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text tasktext&amp;gt;&lt;br/&gt;/ items = ("This is the actual task.")&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;You can test the above code directly here: &lt;a href="http://research.millisecond.com/david.nitz/experiment.web?id=12345"&gt;http://research.millisecond.com/david.nitz/experiment.web?id=12345&lt;/a&gt;&lt;br/&gt;</description><pubDate>Fri, 07 Aug 2015 04:33:27 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: can I screen out participants</title><link>https://forums.millisecond.com/Topic16886.aspx</link><description>Ah...sorry...me again :)&lt;br/&gt;&lt;br/&gt;This was all working very well on the stand alone version, but now I have uploaded the script to the website it's not functioning as hoped. If the participant selects "no" to consent question, the screen out page just aborts the script - no re-direct to URL. I have attached the syntax with the actual website I require the redirect to below, can you see why this might not be working?&lt;br/&gt;&lt;br/&gt;&amp;lt;block screen1&amp;gt;&lt;br/&gt;/ trials = [1=screenoutpage]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage screenoutpage&amp;gt;&lt;br/&gt;/ ontrialend = [if(radiobuttons.consent.response=="No") {defaults.finishpage="http://www.myopinions.com.au/Surveys/RewardSurvey.aspx?codes=spsqiogaap&amp;amp;id=&amp;lt;id"; script.abort();}]&lt;br/&gt;/ questions = [1=consent]&lt;br/&gt;/ showpagenumbers = false&lt;br/&gt;/ showquestionnumbers = false&lt;br/&gt;/ finishlabel = "Next"&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;radiobuttons consent&amp;gt;&lt;br/&gt;/caption = "I have read and understood the information sheet and agree to participate in the study"&lt;br/&gt;/ options = ("No","Yes")&lt;br/&gt;/required = true&lt;br/&gt;/orientation = vertical&lt;br/&gt;&amp;lt;/radiobuttons&amp;gt;&lt;br/&gt;</description><pubDate>Thu, 06 Aug 2015 19:45:42 GMT</pubDate><dc:creator>BG_CQU</dc:creator></item><item><title>RE: can I screen out participants</title><link>https://forums.millisecond.com/Topic16875.aspx</link><description>Brilliant! Thank you for all your help!</description><pubDate>Thu, 06 Aug 2015 14:33:33 GMT</pubDate><dc:creator>BG_CQU</dc:creator></item><item><title>RE: can I screen out participants</title><link>https://forums.millisecond.com/Topic16868.aspx</link><description>Sure. Set the &amp;lt;surveypage&amp;gt;'s /showpagenumbers attribute to false:&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage screenoutpage1&amp;gt;&lt;br/&gt;/ ontrialend = [if(radiobuttons.consent.response=="No") {defaults.finishpage="http://www.websiteaddress.com"; script.abort(); }]&lt;br/&gt;/ questions = [1=consent]&lt;br/&gt;&lt;strong&gt;/ showpagenumbers = false&lt;/strong&gt;&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;If you also want to get rid of the question numbering, do the same with the /showquestionnumbers attribute.&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage screenoutpage1&amp;gt;&lt;br/&gt;/ ontrialend = [if(radiobuttons.consent.response=="No") {defaults.finishpage="http://www.websiteaddress.com"; script.abort(); }]&lt;br/&gt;/ questions = [1=consent]&lt;br/&gt;/ showpagenumbers = false&lt;br/&gt;&lt;strong&gt;/ showquestionnumbers = false&lt;/strong&gt;&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;</description><pubDate>Thu, 06 Aug 2015 04:19:52 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: can I screen out participants</title><link>https://forums.millisecond.com/Topic16866.aspx</link><description>Thanks heaps Dave!!&lt;br/&gt;&lt;br/&gt;One minor issue with this that I can't seem to rectify is that it places a 1 at the top left corner of the screen (see below) that might be a bit confusing to participants - any way I can get rid of it?&lt;br/&gt;&lt;br/&gt;&lt;img src="https://www.millisecond.com/forums/uploads/images/f2bdcedc-8789-471c-a591-ac78.png" alt="https://www.millisecond.com/forums/uploads/images/f2bdcedc-8789-471c-a591-ac78.png" /&gt;&lt;br/&gt;Belinda</description><pubDate>Thu, 06 Aug 2015 03:15:04 GMT</pubDate><dc:creator>BG_CQU</dc:creator></item><item><title>RE: can I screen out participants</title><link>https://forums.millisecond.com/Topic16857.aspx</link><description>#1: Inquisit Lab will *not* redirect you to any URL and isn't supposed to. That'll only work on the web.&lt;br/&gt;#2: If have, of course, tested the code and verified it works under the current Inquisit release (4.0.8.0). If you are using an outdated version, please update your installation. Here's a bit of runnable example code:&lt;br/&gt;&lt;br/&gt;&amp;lt;block myblock&amp;gt;&lt;br/&gt;/ trials = [1=screenoutpage1; 2=mytrial]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage screenoutpage1&amp;gt;&lt;br/&gt;/ ontrialend = [if(radiobuttons.consent.response=="No") {defaults.finishpage="http://www.websiteaddress.com"; script.abort(); }]&lt;br/&gt;/ questions = [1=consent]&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;radiobuttons consent&amp;gt;&lt;br/&gt;/caption = "I have read and understood the information sheet and agree to participate in the study"&lt;br/&gt;/ options = ("No","Yes")&lt;br/&gt;/required = true&lt;br/&gt;/orientation = vertical&lt;br/&gt;&amp;lt;/radiobuttons&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;trial mytrial&amp;gt;&lt;br/&gt;/ stimulusframes = [1=mytext]&lt;br/&gt;/ validresponse = (57)&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;text mytext&amp;gt;&lt;br/&gt;/ items = ("The consent response was &amp;lt;%radiobuttons.consent.response%&amp;gt;. If you selected 'No' on the previous page, you should not be seeing this.")&lt;br/&gt;&amp;lt;/text&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;Select 'No' and the script will terminate. Select 'Yes' and you'll see the message.&lt;br/&gt;</description><pubDate>Wed, 05 Aug 2015 05:05:30 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: can I screen out participants</title><link>https://forums.millisecond.com/Topic16852.aspx</link><description>Thanks again for the quick reply!&lt;br/&gt;&lt;br/&gt;At this point, with the syntax inserted, the survey continues to the end regardless of whether I select "yes" or "no" to the consent question.&lt;br/&gt;&lt;br/&gt;Will this only work when I have the survey and task launched on the millisecond website (and have therefore specified a 'finishpage') or should it be working now using just the stand alone trial version of Inquisit?&lt;br/&gt;&lt;br/&gt;Belinda.&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage screenoutpage1&amp;gt;&lt;br/&gt;/ ontrialend = [if(radiobuttons.consent.response=="No") {defaults.finishpage="www.websiteaddress.com"; script.abort(); }]&lt;br/&gt;/ questions = [1=consent]&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;radiobuttons consent&amp;gt;&lt;br/&gt;/caption = "I have read and understood the information sheet and agree to participate in the study"&lt;br/&gt;/ options = ("No","Yes")&lt;br/&gt;/required = true&lt;br/&gt;/orientation = vertical&lt;br/&gt;&amp;lt;/radiobuttons&amp;gt;&lt;br/&gt;</description><pubDate>Tue, 04 Aug 2015 18:02:51 GMT</pubDate><dc:creator>BG_CQU</dc:creator></item><item><title>RE: can I screen out participants</title><link>https://forums.millisecond.com/Topic16850.aspx</link><description>A &amp;lt;surveypage&amp;gt; is a kind of &amp;lt;trial&amp;gt; element, i.e., what applies to &amp;lt;trial&amp;gt; elements in terms of conditional logic and event attributes applies to &amp;lt;surveypage&amp;gt;s and their questions as well. You'd essentially do something along the following lines:&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage screenoutpage&amp;gt;&lt;br/&gt;/ ontrialend = [if(radiobuttons.consent.response=="No") {defaults.finishpage="http://www.example.com"; script.abort(); }]&lt;br/&gt;/ questions = [1=consent]&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;radiobuttons consent&amp;gt;&lt;br/&gt;/caption = "I have read and understood the information sheet and agree to participate in the study"&lt;br/&gt;/ options = ("No","Yes")&lt;br/&gt;/required = true&lt;br/&gt;/orientation = vertical&lt;br/&gt;&amp;lt;/radiobuttons&amp;gt;&lt;br/&gt;</description><pubDate>Tue, 04 Aug 2015 16:51:57 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: can I screen out participants</title><link>https://forums.millisecond.com/Topic16849.aspx</link><description>Thanks for the speedy reply! &lt;br/&gt;&lt;br/&gt;I have looked at the documentation regarding conditional logic and can only find where it applies to trials in an experiment rather than answers to survey questions. I wondered whether my best option was to use the 'stop' branching technique, so that if participants select a particular answer the script is stopped and they are sent to the finish URL that I will program when I put the survey/task on the millisecond website.&lt;br/&gt;&lt;br/&gt;I was unable to find an example of syntax for this command, I'm wondering if you could provide me with one. This is the question that requires it: (if participants select "no", they need to be screened out)&lt;br/&gt;&lt;br/&gt;&amp;lt;radiobuttons consent&amp;gt;&lt;br/&gt;/caption = "I have read and understood the information sheet and agree to participate in the study"&lt;br/&gt;/ options = ("No","Yes")&lt;br/&gt;/required = true&lt;br/&gt;/orientation = vertical&lt;br/&gt;&amp;lt;/radiobuttons&amp;gt;&lt;br/&gt;&lt;br/&gt;Thanks!!&lt;br/&gt;Belinda</description><pubDate>Tue, 04 Aug 2015 15:59:37 GMT</pubDate><dc:creator>BG_CQU</dc:creator></item><item><title>RE: can I screen out participants</title><link>https://forums.millisecond.com/Topic16838.aspx</link><description>You can use standard conditional logic in your script to do that. Set the defaults.finishpage property to the desired value (the screen out URL) and terminate the script if the screen out condition is met.&lt;br/&gt;</description><pubDate>Tue, 04 Aug 2015 03:51:13 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>