You are on page 1of 7

SETTING A "DO NOT ASK" CONDITION ON

MULTIPLE QUESTIONS
Thisworksheetdescribeshowtosetthesameconditiononacompletegrid,sothatdependingontherespondents
choices,theydonothavetocompleteirrelevantsections.Youcanusethistechniqueonanygroupofquestions.
Theexampleshowsatravelsurvey.Respondentsselectfromachoiceofwaystotraveltowork,answeracommon
questiononhowfartheylivefromwork,andthencompleteafurthersectionforeachtravelmethodtheyuse.
Becausethesurveyinvolvesseveralquestions,soyoucanapplysensibleroutingSnaphassuppliedasurveythat
youcanusewiththeworksheet.Thisissuppliedasabaresurveyforyoutoaddroutingtoo,andasa
demonstration,showingthesurveywithfullrouting.
BothsurveysaresuppliedinWeb:HTMLformat.
Background
Routingrulesallowyoutospecifyconditionsforaskingoromittingquestions.Therearethreetypesofrouting
rulesthatcanbeusedinaSnapquestionnaire.

1. ConditionallyAskQuestion
2. GotoOnAnswer
3. GotoAfterQuestion
Arulecaneitherbeaddedatthebeginningofaquestion,withinaquestioncodeorattheendofaquestion.
Thisexampleusesamultipleresponsequestion,whereasectionisaskedifaresponsehasbeenchecked.Youcan
setaconditionifananswerhasbeenselectedintheformatq4=1(ifcode1hasbeencheckedforquestion4).You
canalsosetaconditionifthatansweristheonlyanswerchecked(usingtheformatq4==1:code1istheonly
answercheckedforquestion1).
Summary of steps
Beforeyoustart,downloadthebasesurveysuppliedbySnap
Downloadbasesurveytousewiththeworksheet
DownloaddemonstrationsurveyError!Hyperlinkreferencenotvalid.
Step1:Examinethequestions
Step2:Addtheroutingtothefirstgridquestion
Step3:Copyittothewholegrid
Step4:Addroutingbasedonapoorrating
Step5:Omitasinglequestionfromagrid
Step6:Publishandcheckyoursurvey
Step 1: Examine the questions
Thesurveyusedconsistsofseveralquestionswhichgatherpeoplesopinionsontheirtraveltowork.


Therespondentisaskedhowtheygettoworkandhowfarawaytheylivefromtheirwork.Thereareseveralsets
ofgridquestionswhichmustbeaskeddependingupontheanswertothefirstquestion.
Thefirstset(q3andq4)isforcarusers
Thesecondset(q5)isforpeoplewhowalktowork
Thethirdset(q6andq7)isforpeoplewhousepublictransport.
Thefinalgridquestion(q8)isansweredbyeveryonewhotravelstowork.
Sinceyouwouldlikepeoplesopinionsonthedifferentmodesoftransport,nomatterhowoftentheyusethem,
youwillsetuproutingsothatsectionsareomittedfromthesurveyiftherespondenthasnotselectedthem.

Step 2: Add the routing to the first grid question


1. Selectthefirstlineofthefirstgridsection,(Q3.a)I choose to travel by car because....

2. Click toopentheRoutingRulesdialogforthatquestion.


3. Click [Add] tocreatearoutingrule.

4. SetthetypetobeConditionallyAskQuestionandclick[OK].
5. TheRuleDetailsdialogappears.Enterq1=1intheIffield.Thiswillcausethefirstquestionofthegridtobe
answerediftherespondenthasselectedcode1(Car)inresponsetoquestion1.

6. Click[OK].Asmallarrowisaddedtothestartofthequestiontoshowthatthereisroutingappliedtoit.You
candoubleclickthisarrowtoopentheRoutingRulesdetails.


Step 3: Copy it to the whole grid

1. Selectthegridquestioncontainingroutingandclick orpressthe[Alt]+[Enter]keys,todisplaythe
Variable Propertieswindow.

2. SelectthewholeoftheRoutingfield,rightclickandselectCopy orpress[Ctrl]+[C]tocopythetext.

3. Selecttheotherquestionsthatyouwishtoapplythisroutingto.InthiscasethisistheTransport Survey
headingforthispage,andalltheotherquestionsinthegrid.Click orpressthe[Alt]+[Enter]keys,to
displaythecommonVariable Properties.
Ifyouhavealsoselectedthefirstgridquestion,theroutinginformationwilldisplay(Not all the same).

4. SelectthetextandrightclickandselectPaste fromthecontextmenu,orpress[Ctrl]+[V]topasteintherouting
fromthefirstgridquestion.
Theroutingnowappliestoallthequestionsinthegrid.

5. Repeatwithappropriateroutingforthequestionsthatarespecifictotheotherresponses.Thiscreatesasurvey
whichonlyasksthequestionsforthemodesoftransportyouhaveselected.
(SetDo not askconditionsofq1=2(walk)fortheQ5gridandheading,andq1=3(publictransport)fortheQ6
andQ7gridsandheadings)

Step 4: Add routing based on a poor rating


Thesurveyincludesaquestion(Q4)whichasksrespondentswhytheydonotfindpublictransportconvenient.


Itonlymakessensetoaskthisquestioniftherespondenthasindicatedthattheydofindpublictransport
inconvenient.
ThismeansthatyouneedtosetroutingonthissectionsoitisonlyaskediftheyhaveselectedtheStrongly agree
orAgree responsestothequestion...public transport is not convenient(Q3.b).

1. Selectquestion4,andclick toopentheRoutingRulesdialog.
2. Click [Add] tocreatearoutingrule.
3. SetthetypetobeConditionallyAskQuestionandclick[OK].
4. TheRuleDetailsdialogappears.Enterq3.b=(1,2)intheIffield.Thiswillcausequestion4tobeansweredif
therespondenthasselectedcode1(Stronglyagree)orcode2(Agree)inresponsetoquestion3.b.

5. Click orpressthe[Alt]+[Enter]keys,todisplaytheVariable Propertieswindow.


6. CopythetextintheNot Asked field(unless( q3.b=(1,2))).

7. Selecttheheadingabovequestion4,andthenholddownthe[Ctrl]keyandclicktoselecttheassociatedOther
responseboxaswell.
8. OpentheVariablepropertieswindowandpastethecopiedtextintotheNot Askedfield.
Thispageshouldnowonlyappeariftherespondentsfindpublictransportinconvenient.

Step 5: Omit a single question from a grid


Inthesurveyprovided,thereisagridofquestionsthatareaskedofallrespondents.
Thesecondofthesequestions(Q8.b)asksiftheywouldcycletoworkifprovisionswereavailable(e.g.shower).
Youdonotwanttoaskthisquestioniftheyevercycletowork.
Sinceitisasimplecondition,youcanenteritdirectlyintotheVariable Propertiesdialog,withoutgoingthrough
theaddingaroutingrule.

1. Selectthisquestionandclick orpressthe[Alt]+[Enter]keys,todisplaytheVariable Propertieswindow.


2. Typeunless(q1=5)intheNotAskedfield.Thiswillcausethisquestiontobeaskediftherespondenthas
selectedcode5(Bike)inresponsetoquestion1.
3. Click[OK].Notethattheroutingarrowisnotvisible.
Step 6: Publish and check your survey
Youcannowpublishyoursurveyinpreviewmodeandchecktherouting.Youshouldtesteverypossiblepathand
combinationofresponsestothefirstquestion.
Youcaninspectthedemonstrationsurveyprovided,whichhasmorecomplicatedrouting,aswellastheexamples
thathavebeenexplainedinthissurvey.

You might also like