Branch on Survey Page if Certain Button Clicked


Author
Message
bmont
bmont
Partner Member (852 reputation)Partner Member (852 reputation)Partner Member (852 reputation)Partner Member (852 reputation)Partner Member (852 reputation)Partner Member (852 reputation)Partner Member (852 reputation)Partner Member (852 reputation)Partner Member (852 reputation)
Group: Forum Members
Posts: 13, Visits: 48
Hi all,
On the first page of my study I have a consent form, and the question "Do you consent to this study?". I currently have it so "Yes" is the valid response, but would like to make it so if the participant clicks "Yes", they are able to progress through the study as usual, but if they click "No", they are sent to the last survey page (which will display a random code). I feel as though I am on the right track, but do not know where I am going wrong. I have tried removing /validresponse = ("Yes"), however the participant is still able to progress through the study when they click "No". Is there a way I can fix this?

My current syntax for this section is:

<radiobuttons consent>
/ caption = "Do you consent to participate in this study?"
/ options = ("Yes",
"No")
/ validresponse = ("Yes")
/ orientation = vertical
/ position = (35.25%, 75%)
/ required = true
</radiobuttons>


<surveypage consent_form>
/ 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 = Logo; 2 = ConsentForm; 3 = radiobuttons.consent]
/ txcolor = black
/showpagenumbers = false
/showquestionnumbers = false
/ nextbuttonposition = (85%, 90%)
/ recorddata = true
/ showbackbutton = false
/ branch = [if(radiobuttons.consent == "No"){surveypage.end_page}]
</surveypage>


Thank you so much!


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View

Reading This Topic

Explore
Messages
Mentions
Search