﻿<?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 3  » Branching from a survey question to an openended or a trial element</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Sat, 30 May 2026 23:00:47 GMT</lastBuildDate><ttl>20</ttl><item><title>Branching from a survey question to an openended or a trial element</title><link>https://forums.millisecond.com/Topic5460.aspx</link><description>&lt;p&gt;I have now been trying to figure this out for a couple days and it's getting pretty frustrating.&amp;nbsp; For my demographics, I have 2 extra questions for female participants.&amp;nbsp; Thus, I want to use branching so that the male pp don't see these questions.&amp;nbsp; I have tried several different combinations, and so far haven't had any luck.&amp;nbsp; I either get error messages, or when my expt will run, both the males and females get taken to the female set of questions.&amp;nbsp; &lt;/p&gt;

&lt;p&gt;Is it not possible to branch from a survey question (asking sex of pp) to an openended, trial, or survey element?&amp;nbsp; The first question that the females will see is a yes/no, so I am flexible with how it is asked (i.e., which element type).&amp;nbsp; However, I've tried all of the ways now and nothing has worked.&lt;/p&gt;

&lt;p&gt;If it helps for me to post the script, I'll do that.&amp;nbsp; I left it out for now, because it's currently a huge mess from all the attempted (and failed) attempts.&lt;/p&gt;

&lt;p&gt;Thanks in advance.&lt;/p&gt;</description><pubDate>Mon, 05 May 2014 05:06:34 GMT</pubDate><dc:creator>Inquisitive</dc:creator></item><item><title>RE: Branching from a survey question to an openended or a trial element</title><link>https://forums.millisecond.com/Topic13203.aspx</link><description>Don't use /skip in this case, use /branch.&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&amp;lt;surveypage demographics&amp;gt;&lt;br/&gt;/ branch = [if (radiobuttons.gender.response=="female") surveypage.femalefollowup]&lt;br/&gt;/ questions = [1=gender; 2=age]&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage femalefollowup&amp;gt;&lt;br/&gt;/ questions = [1=stuff]&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage funnybunny&amp;gt;&lt;br/&gt;/ questions = [1=stuffpuff]&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;radiobuttons gender&amp;gt;&lt;br/&gt;/ caption = "You are"&lt;br/&gt;/ options = ("female","male")&lt;br/&gt;&amp;lt;/radiobuttons&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;textbox age&amp;gt;&lt;br/&gt;/ caption = "Your age"&lt;br/&gt;&amp;lt;/textbox&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;textbox stuff&amp;gt;&lt;br/&gt;/ caption = "Because you're a woman, write stuff here:"&lt;br/&gt;&amp;lt;/textbox&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;textbox stuffpuff&amp;gt;&lt;br/&gt;/ caption = "and now press the back button to get back to the demographics page…unfortunately it will lead you to the femalefollowup page as a male and female"&lt;br/&gt;&amp;lt;/textbox&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;survey mysurvey&amp;gt;&lt;br/&gt;/ pages = [1=demographics; 2=funnybunny]&lt;br/&gt;&amp;lt;/survey&amp;gt;&lt;br/&gt;</description><pubDate>Mon, 05 May 2014 05:06:34 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Branching from a survey question to an openended or a trial element</title><link>https://forums.millisecond.com/Topic13202.aspx</link><description>Hey Dave,&lt;div&gt;I used your script and am wondering how to handle the behavior of the back button. &lt;div&gt;For the case you're male, the femalefollowup page will be skipped and you'll go to the funnybunny page directly. If you then wanna change e.g. your age, you need to go back. By pressing the back button on the funnybunny page you will go to the femalefollowup page. So the &lt;span style="font-size: 10pt;"&gt;/ skip = [radiobuttons.gender.response=="male"] condition does not work in the reverse direction, right? How can I also skip the femalefollowup when going back?&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;ATB&lt;div&gt;Max&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;font color="#ffffff" style="background-color: rgb(0, 0, 0);"&gt;&amp;lt;surveypage demographics&amp;gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color="#ffffff" style="background-color: rgb(0, 0, 0);"&gt;/ questions = [1=gender; 2=age]&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color="#ffffff" style="background-color: rgb(0, 0, 0);"&gt;&amp;lt;/surveypage&amp;gt;&lt;/font&gt;&lt;div&gt;&lt;font color="#ffffff" style="background-color: rgb(0, 0, 0);"&gt;&lt;br/&gt;&lt;/font&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;font color="#ffffff" style="background-color: rgb(0, 0, 0);"&gt;&amp;lt;surveypage femalefollowup&amp;gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color="#ffffff" style="background-color: rgb(0, 0, 0);"&gt;/ skip = [radiobuttons.gender.response=="male"]&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color="#ffffff" style="background-color: rgb(0, 0, 0);"&gt;/ questions = [1=stuff]&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color="#ffffff" style="background-color: rgb(0, 0, 0);"&gt;&amp;lt;/surveypage&amp;gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color="#ffffff" style="background-color: rgb(0, 0, 0);"&gt;&lt;br/&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color="#ffffff" style="background-color: rgb(0, 0, 0);"&gt;&amp;lt;surveypage funnybunny&amp;gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color="#ffffff" style="background-color: rgb(0, 0, 0);"&gt;/ questions = [1=stuffpuff]&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color="#ffffff" style="background-color: rgb(0, 0, 0);"&gt;&amp;lt;/surveypage&amp;gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color="#ffffff" style="background-color: rgb(0, 0, 0);"&gt;&lt;br/&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color="#ffffff" style="background-color: rgb(0, 0, 0);"&gt;&amp;lt;radiobuttons gender&amp;gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color="#ffffff" style="background-color: rgb(0, 0, 0);"&gt;/ caption = "You are"&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color="#ffffff" style="background-color: rgb(0, 0, 0);"&gt;/ options = ("female","male")&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color="#ffffff" style="background-color: rgb(0, 0, 0);"&gt;&amp;lt;/radiobuttons&amp;gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color="#ffffff" style="background-color: rgb(0, 0, 0);"&gt;&lt;br/&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color="#ffffff" style="background-color: rgb(0, 0, 0);"&gt;&amp;lt;textbox age&amp;gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color="#ffffff" style="background-color: rgb(0, 0, 0);"&gt;/ caption = "Your age"&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color="#ffffff" style="background-color: rgb(0, 0, 0);"&gt;&amp;lt;/textbox&amp;gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color="#ffffff" style="background-color: rgb(0, 0, 0);"&gt;&lt;br/&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color="#ffffff" style="background-color: rgb(0, 0, 0);"&gt;&amp;lt;textbox stuff&amp;gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color="#ffffff" style="background-color: rgb(0, 0, 0);"&gt;/ caption = "Because you're a woman, write stuff here:"&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color="#ffffff" style="background-color: rgb(0, 0, 0);"&gt;&amp;lt;/textbox&amp;gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color="#ffffff" style="background-color: rgb(0, 0, 0);"&gt;&lt;br/&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color="#ffffff" style="background-color: rgb(0, 0, 0);"&gt;&amp;lt;textbox stuffpuff&amp;gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color="#ffffff" style="background-color: rgb(0, 0, 0);"&gt;/ caption = "and now press the back button to get back to the demographics page…unfortunately it will lead you to the femalefollowup page as a male and female"&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color="#ffffff" style="background-color: rgb(0, 0, 0);"&gt;&amp;lt;/textbox&amp;gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color="#ffffff" style="background-color: rgb(0, 0, 0);"&gt;&lt;br/&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color="#ffffff" style="background-color: rgb(0, 0, 0);"&gt;&amp;lt;survey mysurvey&amp;gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color="#ffffff" style="background-color: rgb(0, 0, 0);"&gt;/ pages = [1=demographics; 2=femalefollowup; 3=funnybunny]&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font color="#ffffff" style="background-color: rgb(0, 0, 0);"&gt;&amp;lt;/survey&amp;gt;&lt;/font&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description><pubDate>Mon, 05 May 2014 04:57:29 GMT</pubDate><dc:creator>Max</dc:creator></item><item><title>RE: Branching from a survey question to an openended or a trial element</title><link>https://forums.millisecond.com/Topic5465.aspx</link><description>&lt;p&gt;/ skip = [radiobuttons.gender.response!="female"]&lt;/p&gt;
&lt;p&gt;where != is a logical "not". BTW, that's the only /skip you need as it covers both cases ("male" response or no response).&lt;/p&gt;
&lt;p&gt;~Dave&lt;/p&gt;</description><pubDate>Sun, 13 Feb 2011 23:36:35 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Branching from a survey question to an openended or a trial element</title><link>https://forums.millisecond.com/Topic5464.aspx</link><description>&lt;p&gt;It's now working just as I wanted it to, thanks loads!&lt;/p&gt;

&lt;p&gt;One minor thing: for ethics approval, questions must be optional, thus I have required = false.&amp;nbsp; I'm using the skip option, and for the pp that skip the gender question, they still get the female followup questions.&amp;nbsp; I want them to skip it as well.&amp;nbsp; I tried:&lt;/p&gt;

&lt;p&gt;/ skip = [radiobuttons.gender.response=="noresponse"]&lt;/p&gt;

&lt;p&gt;but that didn't work.&amp;nbsp; What do I need to enter as the response?&lt;/p&gt;</description><pubDate>Sun, 13 Feb 2011 21:33:41 GMT</pubDate><dc:creator>Inquisitive</dc:creator></item><item><title>RE: Branching from a survey question to an openended or a trial element</title><link>https://forums.millisecond.com/Topic5461.aspx</link><description>&lt;p&gt;Branching and the like (/branch, /skip) works at the &amp;lt;surveypage&amp;gt; level, not at the level of individual question elments &amp;lt;e.g. &amp;lt;radiobuttons&amp;gt;, &amp;lt;checkboxes&amp;gt;, etc.). In your case you'd have one &amp;lt;surveypage&amp;gt; that contains the gender question element. Then /branch to a different &amp;lt;surveypage&amp;gt; containing the follow-up questions if a subject answers 'female': &lt;/p&gt;&lt;p&gt;&lt;span style="font-family: courier new,courier;"&gt;&amp;lt;surveypage demographics&amp;gt;&lt;br/&gt;/ questions = [1=gender; 2=age]&lt;br/&gt;/ branch = [if(radiobuttons.gender.response=="female")surveypage.femalefollowup]&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage femalefollowup&amp;gt;&lt;br/&gt;/ questions = [1=stuff]&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;radiobuttons gender&amp;gt;&lt;br/&gt;/ caption = "You are"&lt;br/&gt;/ options = ("female","male")&lt;br/&gt;&amp;lt;/radiobuttons&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;textbox age&amp;gt;&lt;br/&gt;/ caption = "Your age"&lt;br/&gt;&amp;lt;/textbox&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;textbox stuff&amp;gt;&lt;br/&gt;/ caption = "You should only see this if you indicated 'female':"&lt;br/&gt;&amp;lt;/textbox&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;survey mysurvey&amp;gt;&lt;br/&gt;/ pages = [1=demographics]&lt;br/&gt;&amp;lt;/survey&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Alternatively, you can use the /skip attribute. I.e. if the subject answers "male", skip the follow-up page:&lt;/p&gt;&lt;p&gt;&lt;span style="font-family: courier new,courier;"&gt;&amp;lt;surveypage demographics&amp;gt;&lt;br/&gt;/ questions = [1=gender; 2=age]&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage femalefollowup&amp;gt;&lt;br/&gt;/ skip = [radiobuttons.gender.response=="male"]&lt;br/&gt;/ questions = [1=stuff]&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;radiobuttons gender&amp;gt;&lt;br/&gt;/ caption = "You are"&lt;br/&gt;/ options = ("female","male")&lt;br/&gt;&amp;lt;/radiobuttons&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;textbox age&amp;gt;&lt;br/&gt;/ caption = "Your age"&lt;br/&gt;&amp;lt;/textbox&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;textbox stuff&amp;gt;&lt;br/&gt;/ caption = "You should only see this if you indicated 'female':"&lt;br/&gt;&amp;lt;/textbox&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;survey mysurvey&amp;gt;&lt;br/&gt;/ pages = [1=demographics; 2=femalefollowup]&lt;br/&gt;&amp;lt;/survey&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Regards,&lt;/p&gt;&lt;p&gt;~Dave&lt;/p&gt;</description><pubDate>Sun, 13 Feb 2011 12:47:40 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>