change textbox row/col values to test params and defaults

This commit is contained in:
Becky Gilbert 2021-10-29 12:56:01 -07:00
parent b577852ab4
commit bf7d18f456

View File

@ -21,9 +21,9 @@
type: jsPsychSurvey,
pages: [
[
{type: 'html', prompt: '<p>Here is some arbitrary text via an "html" question type.<br>Similar to preamble but can be inserted anywhere in the question set.<br>This trial uses automatic question numbering (continued across pages).</p>'},
{type: 'text', prompt: 'This is a single-line text question.', textbox_rows: 1, textbox_columns: 20},
{type: 'text', prompt: 'This is a multi-line text question.', placeholder: 'This is a placeholder.', textbox_rows: 5, textbox_columns: 40},
{type: 'html', prompt: '<p>Here is some arbitrary text via an "html" question type.<br>Similar to preamble but can be inserted anywhere in the question set.</p><p>This trial uses automatic question numbering (continued across pages).</p>'},
{type: 'text', prompt: 'This is a single-line text question.'},
{type: 'text', prompt: 'This is a multi-line text question.', placeholder: 'This is a placeholder.', textbox_rows: 10, textbox_columns: 40},
],
[
{type: 'multi-choice', prompt: 'This is a multi-choice question with options in one column (the default).', options: options},
@ -42,13 +42,13 @@
var survey_trial_random = {
type: jsPsychSurvey,
pages: [[
{type: 'text', prompt: 'Question 1.', textbox_rows: 1, textbox_columns: 20},
{type: 'text', prompt: 'Question 2.', textbox_rows: 1, textbox_columns: 20},
{type: 'text', prompt: 'Question 3.', textbox_rows: 1, textbox_columns: 20},
{type: 'text', prompt: 'Question 4.', textbox_rows: 1, textbox_columns: 20},
{type: 'text', prompt: 'Question 5.', textbox_rows: 1, textbox_columns: 20},
{type: 'text', prompt: 'Question 6.', textbox_rows: 1, textbox_columns: 20},
pages: [[
{type: 'text', prompt: 'Question 1.', textbox_rows: 2, textbox_columns: 20},
{type: 'text', prompt: 'Question 2.'},
{type: 'text', prompt: 'Question 3.', textbox_columns: 50},
{type: 'text', prompt: 'Question 4.', textbox_rows: 2},
{type: 'text', prompt: 'Question 5.'},
{type: 'text', prompt: 'Question 6.', textbox_rows: 10, textbox_columns: 20},
]],
title: 'This is a separate survey trial. The order of questions should be randomized.',
randomize_question_order: true