Group: Forum Members
Posts: 12,
Visits: 42
|
Thanks again! It's always those small details that trip me up!
|
Group: Administrators
Posts: 13K,
Visits: 104K
|
It doesn't work because your syntax is broken.
/ontrialend= [if(dropdown.agree.response=="I do not consent to participate"); script.abort()]
needs to read
/ontrialend= [if(dropdown.agree.response=="I do not consent to participate") script.abort(); ]
|
Group: Forum Members
Posts: 12,
Visits: 42
|
Will this option work if the consent form is part of a batch? Because I tried to do this as part of a batch and it will not abort. Attached is the script I used
<expt> /preinstructions = (intro) /blocks = [1=consent] </expt>
<defaults> / screencolor = (106, 95, 254) </defaults>
<image consenta> /items = ("consenta.gif") </image>
<surveypage consenta> /caption= "INFORMED CONSENT" / fontstyle = ("Verdana", -16, true, false, false, false, 5, 0) / questions = [1=consenta] </surveypage>
<survey consent> / pages = [1=consenta] / responsefontstyle = ("Verdana", -12, false, false, false, false, 5, 0) / itemfontstyle = ("Verdana", -13, false, false, false, false, 5, 0) / itemspacing = 2% / showpagenumbers = false /showquestionnumbers= false /screencolor = (255,255,255) </survey>
<page intro> WELCOME TO THE IDENTITIES AND EXPERIENCES STUDY!
This research consists of a study that will take no more than 30 minutes. All instructions regarding this study will be given to you on the computer. Before we begin, you must first review the informed consent information. It will be presented on the next screen.
</page>
<expt> /blocks = [1=consentb] </expt>
<dropdown agree> / caption = "Agree" / options = ("I freely consent to participate", "I do not consent to participate") </dropdown>
<image consentb> /items = ("consentb.gif") </image>
<surveypage consentb> /caption= "INFORMED CONSENT CONTINUED" / fontstyle = ("Verdana", -16, true, false, false, false, 5, 0) / questions = [1=consentb; 2=agree] </surveypage>
<survey consentb> / pages = [1=consentb] / responsefontstyle = ("Verdana", -12, false, false, false, false, 5, 0) / itemfontstyle = ("Verdana", -13, false, false, false, false, 5, 0) / itemspacing = 2% / showpagenumbers = false /showquestionnumbers= false /screencolor = (255,255,255) /ontrialend= [if(dropdown.agree.response=="I do not consent to participate"); script.abort()] </survey>
|
Group: Administrators
Posts: 13K,
Visits: 104K
|
It doesn't really matter whether you use radiobuttons or a dropdown. Terminating the script works the same in both cases, i.e. you can adapt the code you came across accordingly.
|
Group: Forum Members
Posts: 12,
Visits: 42
|
Now I have another question about this, is there a way to abort the study if the participant does not consent using the drop down options? I have come across this option in the case of radio buttons but not with a drop down option.
|
Group: Forum Members
Posts: 12,
Visits: 42
|
That worked Thank you very much!!!
|
Group: Administrators
Posts: 13K,
Visits: 104K
|
There is no such thing as an /image attribute for <surveypage> elements:
<surveypage consent> / fontstyle = ("Verdana", -16, true, false, false, false, 5, 0) / questions = [1=agree]
/ image = "consent" </surveypage>
You use an <image> element just like any other survey-question-type (<radiobuttons>, <dropdown>, etc.), i.e. you display it via the page's /questions attribute:
<surveypage consent> / fontstyle = ("Verdana", -16, true, false, false, false, 5, 0) / questions = [1=consent; 2=agree] </surveypage>
|
Group: Forum Members
Posts: 12,
Visits: 42
|
Hi all, I am currently tryind to add a digital consent form into my experiment but I'm having trouble. I think there is a problem with the way I am trying to call up the consent form on to the survey page. I've attached my script below. If anyone has advice it would be greatly appreciated!
<dropdown agree> / caption = "Agree" / options = ("I agree", "I do not agree") </dropdown>
<image consent> /items = ("consent.gif") /position =(0,0) </image>
<surveypage consent> / fontstyle = ("Verdana", -16, true, false, false, false, 5, 0) / questions = [1=agree] / image = "consent" </surveypage>
<survey consent> / pages = [1=consent] / responsefontstyle = ("Verdana", -12, false, false, false, false, 5, 0) / itemfontstyle = ("Verdana", -13, false, false, false, false, 5, 0) / itemspacing = 2% / showpagenumbers = false </survey>
|