+xAnother update:
So while I have successfully branched the participant to the end page if they click "No", they are still able to click continue from the end page and progress through the study. Is there a way I can have the study terminate after they are presented with the end page? If a participant progresses through the study as usual, the "Finish" button on the end page closes the study, however in this case it is a "Continue" button.
Thank you again (and sorry for all of the updates)!
You should use /skip instead of /branch for that:
<radiobuttons consent>
/ caption = "Do you consent to participate in this study?"
/ options = ("Yes",
"No")
/ orientation = vertical
/ position = (35.25%, 75%)
/ required = true
</radiobuttons>
<surveypage consent_form>
/ caption = "Consent Form Placeholder"
/ fontstyle = ("Arial", 1.2%, false, false, false, false, 5, 1)
/itemfontstyle = ("Arial", 1.2%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 1.2%, false, false, false, false, 5, 1)
/ questions = [1 = radiobuttons.consent]
/ txcolor = black
/showpagenumbers = false
/showquestionnumbers = false
/ nextbuttonposition = (85%, 90%)
/ recorddata = true
/ showbackbutton = false
</surveypage>
<surveypage pg1>
/ skip = [
radiobuttons.consent.response == "No";
]/ caption = "Page 1: You should not see this if you didn't consent"
</surveypage>
<surveypage pg2>
/ skip = [
radiobuttons.consent.response == "No";
]/ caption = "Page 2: You should not see this if you didn't consent"
</surveypage>
<surveypage endpage>
/ caption = "This is the end."
/ showbackbutton = false
</surveypage>
<survey mysurvey>
/ pages = [1=consent_form; 2 = pg1; 3 = pg2; 4 = endpage]
/ showpagenumbers = false
/ showquestionnumbers = false
</survey>
And if you want differently behaving end pages for consent vs no consent, you can do:
<radiobuttons consent>
/ caption = "Do you consent to participate in this study?"
/ options = ("Yes",
"No")
/ orientation = vertical
/ position = (35.25%, 75%)
/ required = true
</radiobuttons>
<surveypage consent_form>
/ caption = "Consent Form Placeholder"
/ fontstyle = ("Arial", 1.2%, false, false, false, false, 5, 1)
/itemfontstyle = ("Arial", 1.2%, false, false, false, false, 5, 1)
/responsefontstyle = ("Arial", 1.2%, false, false, false, false, 5, 1)
/ questions = [1 = radiobuttons.consent]
/ txcolor = black
/showpagenumbers = false
/showquestionnumbers = false
/ nextbuttonposition = (85%, 90%)
/ recorddata = true
/ showbackbutton = false
</surveypage>
<surveypage pg1>
/ skip = [
radiobuttons.consent.response == "No";
]
/ caption = "Page 1: You should not see this if you didn't consent"
</surveypage>
<surveypage pg2>
/ skip = [
radiobuttons.consent.response == "No";
]
/ caption = "Page 2: You should not see this if you didn't consent"
</surveypage>
<surveypage regular_endpage>
/ skip = [
radiobuttons.consent.response == "No";
]
/ caption = "This is the end."
</surveypage>
<surveypage noconsent_endpage>
/ skip = [
radiobuttons.consent.response == "Yes";
]/ caption = "This is the end."
/ showbackbutton = false
</surveypage>
<survey mysurvey>
/ pages = [1=consent_form; 2 = pg1; 3 = pg2; 4 = regular_endpage; 5 = noconsent_endpage]
/ showpagenumbers = false
/ showquestionnumbers = false
</survey>