﻿<?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 5  » Survey Branching Issue</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Fri, 24 Apr 2026 00:53:55 GMT</lastBuildDate><ttl>20</ttl><item><title>Survey Branching Issue</title><link>https://forums.millisecond.com/Topic30309.aspx</link><description>Hey everyone,&lt;br/&gt;&lt;br/&gt;I'm having some issues with some branching code. I found this forum post somewhat related to my issue: &lt;a href="https://www.millisecond.com/forums/Topic20629.aspx"&gt;https://www.millisecond.com/forums/Topic20629.aspx&lt;/a&gt;&lt;br/&gt;I'm attempting to make a series of questions for a number of different classrooms (126 to 131). The first question asks which classroom the participant belongs to. Based on their answer I want the program to take the participant to a questionnaire specific to that class. So there are 6 different branches.&lt;br/&gt;&lt;br/&gt;For some reason, I'm unable to get my code to branch to the questions after the initial Class question. I'll put my code below:&lt;br/&gt;---------------&lt;br/&gt;&amp;lt;block RCPBLOCK&amp;gt;&lt;br/&gt;/ trials = [1=classselect]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage Classselect&amp;gt;&lt;br/&gt;/questions = [1=class2]&lt;br/&gt;/fontstyle=("Arial", 2%, false, false, false, false, 5, 0)&lt;br/&gt;/ branch = [if(radiobuttons.Class2.response=="126b")survey.homeroom126]&lt;br/&gt;/ branch = [if(radiobuttons.Class2.response=="127b")survey.homeroom127]&lt;br/&gt;/ branch = [if(radiobuttons.Class2.response=="128b")survey.homeroom128]&lt;br/&gt;/ branch = [if(radiobuttons.Class2.response=="129b")survey.homeroom129]&lt;br/&gt;/ branch = [if(radiobuttons.Class2.response=="130b")survey.homeroom130]&lt;br/&gt;/ branch = [if(radiobuttons.Class2.response=="131b")survey.homeroom131]&lt;br/&gt;/showpagenumbers = false&lt;br/&gt;/showquestionnumbers = false&lt;br/&gt;/ navigationbuttonsize=(10, 5)&lt;br/&gt;/ navigationbuttonfontstyle=("Arial", 5%, true, false)&lt;br/&gt;/finishlabel="Next"&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;radiobuttons Class2&amp;gt;&lt;br/&gt;/ caption="Which class are you in?"&lt;br/&gt;/ options=("126b","127b","128b","129b","130b","131b")&lt;br/&gt;/ fontstyle = ("Arial", 5%, false, false, false, false, 5, 0)&lt;br/&gt;/ responsefontstyle =("Arial", 3.5%, false, false, false, false, 5, 0)&lt;br/&gt;/ position=(10,15)&lt;br/&gt;/required=true&lt;br/&gt;&amp;lt;/radiobuttons&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;survey homeroom126&amp;gt;&lt;br/&gt;/ pages=[1=HOME1; 2=HOME2; 3=HOME3; 4=HOME4; 5=HOME5; 6=HOME6; 7=HOME7; 8=HOME8; 9=HOME9; 10=HOME10; 11=HOME11; 12=HOME12; 13=HOME13; 14=HOME14; 15=HOME15; 16=HOME16; 17=HOME17]&lt;br/&gt;/ backlabel="Back"&lt;br/&gt;/ nextlabel="Next"&lt;br/&gt;/ finishlabel="Next"&lt;br/&gt;/ fontstyle=("Arial", 3%, false, false, false, false, 5, 0)&lt;br/&gt;/ responsefontstyle=("Arial", 3%, false, false, false, false, 5, 0)&lt;br/&gt;/ itemfontstyle=("Arial", 3%, false, false, false, false, 5, 0)&lt;br/&gt;/ showpagenumbers=false&lt;br/&gt;/ showquestionnumbers=false&lt;br/&gt;/ backbuttonposition=(35, 90)&lt;br/&gt;/ nextbuttonposition=(70, 90)&lt;br/&gt;/ navigationbuttonsize=(10, 5)&lt;br/&gt;/ navigationbuttonfontstyle=("Arial", 5%, true, false)&lt;br/&gt;/ recorddata = true&lt;br/&gt;&amp;lt;/survey&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage home1&amp;gt;&lt;br/&gt;/caption="Choose as many as you want."&lt;br/&gt;/fontstyle=("Arial", 3%, false, false, false, false, 5, 0)&lt;br/&gt;/questions=[1=hr1]&lt;br/&gt;/showpagenumbers = false&lt;br/&gt;/showquestionnumbers = false&lt;br/&gt;/ navigationbuttonsize=(10, 5)&lt;br/&gt;/ navigationbuttonfontstyle=("Arial", 5%, true, false)&lt;br/&gt;/finishlabel="Next"&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;checkboxes hr1&amp;gt;&lt;br/&gt;/caption="Who does well in school?"&lt;br/&gt;/options=("I can't think of anybody", "My friend is not listed", "Don't want to answer", "Name Placeholder")&lt;br/&gt;/optionvalues=("-77", "-88", "-99", "1")&lt;br/&gt;/required=true&lt;br/&gt;&amp;lt;/checkboxes&amp;gt;&lt;br/&gt;&lt;br/&gt;--------&lt;br/&gt;(There are 17 questions in all, HOME1-17)&lt;br/&gt;(There are also the surveys for 127-131 and beyond but it is the same besides some renamed checkboxes/names!)&lt;br/&gt;&lt;br/&gt;Any help on why Class2 doesn't branch to the survey as coded would be very helpful. I'm unsure what I'm doing wrong here! Thank you ahead of time!&lt;br/&gt;</description><pubDate>Fri, 27 Nov 2020 20:59:00 GMT</pubDate><dc:creator>Michael Y</dc:creator></item><item><title>RE: Survey Branching Issue</title><link>https://forums.millisecond.com/Topic30316.aspx</link><description>This did the trick perfectly! I knew it had to be a small mistake somewhere.&lt;br/&gt;Thanks a ton!</description><pubDate>Fri, 27 Nov 2020 20:59:00 GMT</pubDate><dc:creator>Michael Y</dc:creator></item><item><title>RE: Survey Branching Issue</title><link>https://forums.millisecond.com/Topic30311.aspx</link><description>&lt;blockquote data-id="30309" class="if-quote-wrapper" unselectable="on" data-guid="1606481939644" id="if_insertedNode_1606481938941" contenteditable="false"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="30309" 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="30309" 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="30309" title=" "&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;Michael Y - 11/27/2020&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-30309"&gt;&lt;div class="if-quote-message-margin" contenteditable="true"&gt;Hey everyone,&lt;br/&gt;&lt;br/&gt;I'm having some issues with some branching code. I found this forum post somewhat related to my issue: &lt;a href="https://www.millisecond.com/forums/Topic20629.aspx"&gt;&lt;a href="https://www.millisecond.com/forums/Topic20629.aspx"&gt;https://www.millisecond.com/forums/Topic20629.aspx&lt;/a&gt;&lt;/a&gt;&lt;br/&gt;I'm attempting to make a series of questions for a number of different classrooms (126 to 131). The first question asks which classroom the participant belongs to. Based on their answer I want the program to take the participant to a questionnaire specific to that class. So there are 6 different branches.&lt;br/&gt;&lt;br/&gt;For some reason, I'm unable to get my code to branch to the questions after the initial Class question. I'll put my code below:&lt;br/&gt;---------------&lt;br/&gt;&amp;lt;block RCPBLOCK&amp;gt;&lt;br/&gt;/ trials = [1=classselect]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage Classselect&amp;gt;&lt;br/&gt;/questions = [1=class2]&lt;br/&gt;/fontstyle=("Arial", 2%, false, false, false, false, 5, 0)&lt;br/&gt;/ branch = [if(radiobuttons.Class2.response=="126b")survey.homeroom126]&lt;br/&gt;/ branch = [if(radiobuttons.Class2.response=="127b")survey.homeroom127]&lt;br/&gt;/ branch = [if(radiobuttons.Class2.response=="128b")survey.homeroom128]&lt;br/&gt;/ branch = [if(radiobuttons.Class2.response=="129b")survey.homeroom129]&lt;br/&gt;/ branch = [if(radiobuttons.Class2.response=="130b")survey.homeroom130]&lt;br/&gt;/ branch = [if(radiobuttons.Class2.response=="131b")survey.homeroom131]&lt;br/&gt;/showpagenumbers = false&lt;br/&gt;/showquestionnumbers = false&lt;br/&gt;/ navigationbuttonsize=(10, 5)&lt;br/&gt;/ navigationbuttonfontstyle=("Arial", 5%, true, false)&lt;br/&gt;/finishlabel="Next"&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;radiobuttons Class2&amp;gt;&lt;br/&gt;/ caption="Which class are you in?"&lt;br/&gt;/ options=("126b","127b","128b","129b","130b","131b")&lt;br/&gt;/ fontstyle = ("Arial", 5%, false, false, false, false, 5, 0)&lt;br/&gt;/ responsefontstyle =("Arial", 3.5%, false, false, false, false, 5, 0)&lt;br/&gt;/ position=(10,15)&lt;br/&gt;/required=true&lt;br/&gt;&amp;lt;/radiobuttons&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;survey homeroom126&amp;gt;&lt;br/&gt;/ pages=[1=HOME1; 2=HOME2; 3=HOME3; 4=HOME4; 5=HOME5; 6=HOME6; 7=HOME7; 8=HOME8; 9=HOME9; 10=HOME10; 11=HOME11; 12=HOME12; 13=HOME13; 14=HOME14; 15=HOME15; 16=HOME16; 17=HOME17]&lt;br/&gt;/ backlabel="Back"&lt;br/&gt;/ nextlabel="Next"&lt;br/&gt;/ finishlabel="Next"&lt;br/&gt;/ fontstyle=("Arial", 3%, false, false, false, false, 5, 0)&lt;br/&gt;/ responsefontstyle=("Arial", 3%, false, false, false, false, 5, 0)&lt;br/&gt;/ itemfontstyle=("Arial", 3%, false, false, false, false, 5, 0)&lt;br/&gt;/ showpagenumbers=false&lt;br/&gt;/ showquestionnumbers=false&lt;br/&gt;/ backbuttonposition=(35, 90)&lt;br/&gt;/ nextbuttonposition=(70, 90)&lt;br/&gt;/ navigationbuttonsize=(10, 5)&lt;br/&gt;/ navigationbuttonfontstyle=("Arial", 5%, true, false)&lt;br/&gt;/ recorddata = true&lt;br/&gt;&amp;lt;/survey&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage home1&amp;gt;&lt;br/&gt;/caption="Choose as many as you want."&lt;br/&gt;/fontstyle=("Arial", 3%, false, false, false, false, 5, 0)&lt;br/&gt;/questions=[1=hr1]&lt;br/&gt;/showpagenumbers = false&lt;br/&gt;/showquestionnumbers = false&lt;br/&gt;/ navigationbuttonsize=(10, 5)&lt;br/&gt;/ navigationbuttonfontstyle=("Arial", 5%, true, false)&lt;br/&gt;/finishlabel="Next"&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;checkboxes hr1&amp;gt;&lt;br/&gt;/caption="Who does well in school?"&lt;br/&gt;/options=("I can't think of anybody", "My friend is not listed", "Don't want to answer", "Name Placeholder")&lt;br/&gt;/optionvalues=("-77", "-88", "-99", "1")&lt;br/&gt;/required=true&lt;br/&gt;&amp;lt;/checkboxes&amp;gt;&lt;br/&gt;&lt;br/&gt;--------&lt;br/&gt;(There are 17 questions in all, HOME1-17)&lt;br/&gt;(There are also the surveys for 127-131 and beyond but it is the same besides some renamed checkboxes/names!)&lt;br/&gt;&lt;br/&gt;Any help on why Class2 doesn't branch to the survey as coded would be very helpful. I'm unsure what I'm doing wrong here! Thank you ahead of time!&lt;br/&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="30309"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/blockquote&gt;&lt;br/&gt;Your branches reside at the wrong level. A surveypage cannot branch to a survey. A surveypage can only branch to another surveypage. You need to move the branches up to the block-level. (A surveypage is a kind of trial, a survey is a kind of block.)&lt;br/&gt;&lt;br/&gt;&amp;lt;expt&amp;gt;&lt;br/&gt;/ blocks = [1=RCPBLOCK]&lt;br/&gt;&amp;lt;/expt&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;block RCPBLOCK&amp;gt;&lt;br/&gt;/ trials = [1=classselect]&lt;br/&gt;/ branch = [if(radiobuttons.Class2.response=="126b")survey.homeroom126]&lt;br/&gt;/ branch = [if(radiobuttons.Class2.response=="127b")survey.homeroom127]&lt;br/&gt;/ branch = [if(radiobuttons.Class2.response=="128b")survey.homeroom128]&lt;br/&gt;/ branch = [if(radiobuttons.Class2.response=="129b")survey.homeroom129]&lt;br/&gt;/ branch = [if(radiobuttons.Class2.response=="130b")survey.homeroom130]&lt;br/&gt;/ branch = [if(radiobuttons.Class2.response=="131b")survey.homeroom131]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;surveypage Classselect&amp;gt;&lt;br/&gt;/questions = [1=class2]&lt;br/&gt;/fontstyle=("Arial", 2%, false, false, false, false, 5, 0)&lt;br/&gt;/showpagenumbers = false&lt;br/&gt;/showquestionnumbers = false&lt;br/&gt;/ navigationbuttonsize=(10, 5)&lt;br/&gt;/ navigationbuttonfontstyle=("Arial", 5%, true, false)&lt;br/&gt;/finishlabel="Next"&lt;br/&gt;&amp;lt;/surveypage&amp;gt;&lt;br/&gt;&lt;br/&gt;&amp;lt;radiobuttons Class2&amp;gt;&lt;br/&gt;/ caption="Which class are you in?"&lt;br/&gt;/ options=("126b","127b","128b","129b","130b","131b")&lt;br/&gt;/ fontstyle = ("Arial", 5%, false, false, false, false, 5, 0)&lt;br/&gt;/ responsefontstyle =("Arial", 3.5%, false, false, false, false, 5, 0)&lt;br/&gt;/ position=(10,15)&lt;br/&gt;/required=true&lt;br/&gt;&amp;lt;/radiobuttons&amp;gt;&lt;br/&gt;</description><pubDate>Fri, 27 Nov 2020 13:02:58 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>