/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>

 


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
IR - 11 Years Ago
Dave - 11 Years Ago
             Thank you!!! IR
IR - 11 Years Ago

Reading This Topic

Explore
Messages
Mentions
Search