/branch problem: continue after two affirmative answers


Author
Message
IR
IR
Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)
Group: Forum Members
Posts: 13, Visits: 146

Hello,

I wouldlike my participants to reply to two questions. If both responses are “YES”they should go on replying to other questions, if one of the two responses (orboth) is “NO”, a page with a text should appear before ending the experiment.

I tried thefollowing script without much success. My main problem is that I cannot figureout if /branch is what I need and where it should intervene in the script.

I willappreciate any help!

Regards,

IR

**************************************

<blockIntro>

/trials =[1=ethics; 2=demo1; 3=endIR]

/branch =[if(radiobuttons.ethic1.response=="YES" &&radiobuttons.ethic2.response=="YES") surveypage.demo1]

</block>

 

 

<surveypageendIR>

/showpagenumbers= false

/showquestionnumbers= false

/fontstyle = ("Arial", 2%, false, false, false,false, 5, 0)

/caption ="Dear participant,

since youdid not give us the authorization to use your data, you will not be able tocontinue with the experiment.

Thank youfor your interest."

/timeout =5000

</surveypage>

 

 

<radiobuttonsethic1>

/caption ="

 

CONSENT

Based onthe information presented above, I confirm that I wish to take part in thestudy

« XXXPROJECT », and I authorize:

 

 

The use ofthe data for scientific purpose..."

/options =("YES", "NO")

/optionvalues= ("1", "0")

/required=true

</radiobuttons>

 

<radiobuttonsethic2>

/caption ="

The use ofthe data for teaching purposes ..."

/options =("YES", "NO")

/optionvalues= ("1", "0")

/required=true

</radiobuttons>

 

<surveypageethics>

/showpagenumbers= false

/showquestionnumbers= false

/questions = [1=ethic1; 2=ethic2]

</surveypage>

<textbox code>

/ caption ="Mturk Code"

/ minchars= 1

/ required= true

</textbox>

 

<dropdownsex>

/ caption ="Sex"

/ options =("female", "male")

</dropdown>

 

<textboxage>

/ caption ="Age"

/ mask =positiveinteger

/ range =(7, 110)

</textbox>

 

 

<dropdowneducation>

/ caption ="Please indicate your education level"

/ options =("PhD or above", "Master degree", "Collegedegree", "High school diploma", "Basic")

</dropdown>

 

<surveypagedemo1>

/showpagenumbers= false

/showquestionnumbers= false

/ caption ="Please answer the following demographic questions"

/ fontstyle= ("Arial", 2%, true, false, false, false, 5, 0)

/ questions= [1=code; 2=sex; 3=age; 4=education]

</surveypage>

 


Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 108K
#1: Your /branch resides at the wrong level. From a <block> you can only /branch to a <block>, you cannot /branch to a <trial>. Similarly, from a <trial>, you can only /branch to a <trial>, you cannot /branch to a <block>.

#2: You'll want to use /skip rather than /branch here:

**************************************

<block Intro>
/trials =[1=ethics; 2=demo1; 3=endIR]
</block>

<surveypage endIR>
/skip = [radiobuttons.ethic1.response=="1" && radiobuttons.ethic2.response=="1"]
/showpagenumbers= false
/showquestionnumbers= false
/fontstyle = ("Arial", 2%, false, false, false,false, 5, 0)
/caption ="Dear participant,
since youdid not give us the authorization to use your data, you will not be able tocontinue with the experiment.
Thank youfor your interest."
/timeout =5000
</surveypage>

<radiobuttons ethic1>
/caption ="
 
CONSENT

Based onthe information presented above, I confirm that I wish to take part in the study

« XXXPROJECT », and I authorize:

The use ofthe data for scientific purpose..."
/options =("YES", "NO")
/optionvalues= ("1", "0")
/required=true
</radiobuttons>

<radiobuttons ethic2>
/caption ="
The use ofthe data for teaching purposes ..."
/options =("YES", "NO")
/optionvalues= ("1", "0")
/required=true
</radiobuttons>

<surveypage ethics>
/showpagenumbers= false
/showquestionnumbers= false
/questions = [1=ethic1; 2=ethic2]
</surveypage>

<textbox code>
/ caption ="Mturk Code"
/ minchars= 1
/ required= true
</textbox>
 
<dropdown sex>
/ caption ="Sex"
/ options =("female", "male")
</dropdown>

<textbox age>
/ caption ="Age"
/ mask =positiveinteger
/ range =(7, 110)
</textbox>

<dropdown education>
/ caption ="Please indicate your education level"
/ options =("PhD or above", "Master degree", "Collegedegree", "High school diploma", "Basic")
</dropdown>
 
<surveypage demo1>
/ skip = [radiobuttons.ethic1.response=="0" || radiobuttons.ethic2.response=="0"]
/showpagenumbers= false
/showquestionnumbers= false
/ caption ="Please answer the following demographic questions"
/ fontstyle= ("Arial", 2%, true, false, false, false, 5, 0)
/ questions= [1=code; 2=sex; 3=age; 4=education]
</surveypage>

IR
IR
Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)Esteemed Member (1.5K reputation)
Group: Forum Members
Posts: 13, Visits: 146
Thank you!!!

IR

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search