Ethics statement
This documentation describes only one part of an experiment. For other tasks, see the related pages.
Ethics agreement
Before participating in the experiment, participants must agree to the ethics guidelines by checking a consent box. This section ensures that participants understand their rights and are willing to continue with the study.
Overview
The following part of the code handles the ethics agreement. The whole script consists of 2 parts:
- The sequence which contains only the
"ethics"
trial. - The ethics agreement trial.
The ethics trial has several elements:
- An
HTML
page that displays the ethics explanation. - A checkbox for participants to indicate their consent.
- A button for continuing to the next screen or trial, which becomes enabled only after the participant checks the consent box.
The .print()
method displays both the ethics explanation and the button. The .wait()
method pauses the experiment until the button is pressed.
// Sequence of events
"ethics"
// Ethics agreement: participants must agree before continuing
"ethics",
"ethics_explanation", "ethics.html"
,
"form", `<div class="switch_box"><input name="consent" id='consent' type="checkbox" class="obligatory switch_1"> I want to participate.</div>`
,
"#consent"
,
"go_to_next_page", "Start the experiment"
;
Dependencies
- Resources
ethics.html
logo.png
(optional)
- Scripts
main.js
- Aesthetics
global_main.css
PennController.css
- Modules
PennController.js
Form.js
Other modules and aesthetics may be necessary if your experiment uses other trials, e.g. a form for recording participant information.
The content of the ethics.html
file can be adjusted to the requirements of the pertinent ethics committee. Click on Details to see the contents of the html file.
Linguistic experiment
Ethics agreement
This is a demo of an ethics agreement for an experiment. It has a checkbox that participants need to click in order to proceed to the experiment.
If you have any questions or problems, please contact Anna Pryslopska ( anna.pryslopska [at] gmail .com ).
Running Code
To run the code, clone or download the content of the GitHub repository and copy it into a new empty project in your PCIbex farm. Alternatively, click on the demo link and copy the template.