from otreeutils.surveys import generate_likert_field, generate_likert_table # define a Likert 5-point scale with its labels likert_1_labels = ( 'I agree.', ) consent = { 'page_title': 'Consent', 'survey_fields': [ # create a table of Likert scale choices # we use the same 5-point scale a before and specify four rows for the table, # each with a tuple (field name, label) generate_likert_table(likert_1_labels, [ ('consent_01', 'I understand that my participation is voluntary and I can end the study at any time by clicking the browser exit button.'), ('consent_02', 'I understand that my answers will be fully anonymous.'), ('consent_03', 'I understand that the anonymised data collected from this study may be used in the future for research purposes.'), ], form_help_initial='
To participate in the study, please read each statement and click on "I agree." to continue.
', # HTML to be placed on top of form form_help_final='', # HTML to be placed below form table_row_header_width_pct=15, # width of row header (first column) in percent. default: 25 table_rows_randomize=True, # randomize order of displayed rows table_cols_equal_width=False, # adjust form columns so that they have equal width table_cells_highlight= True, # highlight form cells on mouse-over table_rows_highlight= False, # highlight form rows on mouse-over ) ] }