Skip to content

Commit 5253ed4

Browse files
committed
remove showQuestionNumbers: false/off, as this is now the default
1 parent 0a4aba5 commit 5253ed4

16 files changed

+13
-39
lines changed

docs/demos/jspsych-survey-demo1.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
const trial = {
1818
type: jsPsychSurvey,
1919
survey_json: {
20-
showQuestionNumbers: false,
2120
elements:
2221
[
2322
{

docs/demos/jspsych-survey-demo2.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
const trial = {
1919
type: jsPsychSurvey,
2020
survey_json: {
21-
showQuestionNumbers: false,
2221
title: 'My questionnaire',
2322
completeText: 'Done!',
2423
pageNextText: 'Continue',

docs/demos/jspsych-survey-demo3.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
const trial = {
1919
type: jsPsychSurvey,
2020
survey_json: {
21-
showQuestionNumbers: false,
2221
title: 'Likert scale examples',
2322
pages: [
2423
{

docs/demos/jspsych-survey-demo4.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
const trial = {
3232
type: jsPsychSurvey,
3333
survey_json: {
34-
showQuestionNumbers: false,
3534
title: 'Conditional question visibility.',
3635
showNavigationButtons: "none",
3736
goNextPageAutomatic: true,

docs/demos/jspsych-survey-demo5.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
// set up the survey JSON for this trial
4747
// any question-specific variables come from the appropriate object in the question_variables array
4848
let survey_json = {
49-
showQuestionNumbers: false,
5049
title: 'Dynamically constructing survey trials.',
5150
completeText: 'Next >>',
5251
elements: [

docs/demos/jspsych-survey-demo6.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@
9494
showLabel: true,
9595
multiSelect: true
9696
}],
97-
showQuestionNumbers: "off",
9897
completeText: 'Next',
9998
};
10099

@@ -123,8 +122,7 @@
123122
regex: "[rR]{1}[eE]{1}[dD]{1}"
124123
}],
125124
}],
126-
completeText: "Check my response",
127-
showQuestionNumbers: "off"
125+
completeText: "Check my response"
128126
};
129127

130128
const sound_trial = {

docs/demos/jspsych-survey-demo7.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,7 @@
7777
pattern: "aaa-9999"
7878
}
7979
}
80-
],
81-
showQuestionNumbers: false
80+
]
8281
};
8382

8483
timeline.push({

docs/overview/building-surveys.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ Along with either the 'elements' or 'pages' property, you can add optional surve
144144
```javascript
145145
const survey_json = {
146146
title: "Survey title",
147-
showQuestionNumbers: "off",
148147
completeText: "Done",
149148
pageNextText: "Next",
150149
pagePrevText: "Back",
@@ -336,19 +335,19 @@ Rather than repeating a question format within the same trial, perhaps you want
336335
timeline_variables: [
337336
{
338337
word: 'cheese',
339-
survey_json: { elements: [ {type: "text", title: "Enter a word related to CHEESE:", autocomplete: "off" } ], showQuestionNumbers: false, completeText: "Next", focusFirstQuestionAutomatic: true }
338+
survey_json: { elements: [ {type: "text", title: "Enter a word related to CHEESE:", autocomplete: "off" } ], completeText: "Next", focusFirstQuestionAutomatic: true }
340339
},
341340
{
342341
word: 'ring',
343-
survey_json: { elements: [ {type: "text", title: "Enter a word related to RING:", autocomplete: "off" } ], showQuestionNumbers: false, completeText: "Next", focusFirstQuestionAutomatic: true }
342+
survey_json: { elements: [ {type: "text", title: "Enter a word related to RING:", autocomplete: "off" } ], completeText: "Next", focusFirstQuestionAutomatic: true }
344343
},
345344
{
346345
word: 'bat',
347-
survey_json: { elements: [ {type: "text", title: "Enter a word related to BAT:", autocomplete: "off" } ], showQuestionNumbers: false, completeText: "Next", focusFirstQuestionAutomatic: true }
346+
survey_json: { elements: [ {type: "text", title: "Enter a word related to BAT:", autocomplete: "off" } ], completeText: "Next", focusFirstQuestionAutomatic: true }
348347
},
349348
{
350349
word: 'cow',
351-
survey_json: { elements: [ {type: "text", title: "Enter a word related to COW:", autocomplete: "off" } ], showQuestionNumbers: false, completeText: "Next", focusFirstQuestionAutomatic: true }
350+
survey_json: { elements: [ {type: "text", title: "Enter a word related to COW:", autocomplete: "off" } ],completeText: "Next", focusFirstQuestionAutomatic: true }
352351
}
353352
]
354353
};
@@ -391,7 +390,6 @@ Rather than repeating a question format within the same trial, perhaps you want
391390
autocomplete: "off"
392391
}
393392
],
394-
showQuestionNumbers: false,
395393
completeText: "Next",
396394
focusFirstQuestionAutomatic: true
397395
}
@@ -419,7 +417,6 @@ Rather than repeating a question format within the same trial, perhaps you want
419417
question.title = `Enter a word related to ${jsPsych.evaluateTimelineVariable('word').toUpperCase()}`;
420418
question.autocomplete = "off";
421419
// Set survey-level parameters
422-
survey.showQuestionNumbers = false;
423420
survey.completeText = "Next";
424421
survey.focusFirstQuestionAutomatic = true;
425422
}

docs/plugins/survey.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,6 @@ import '@jspsych/plugin-survey/css/survey.css'
256256
const trial = {
257257
type: jsPsychSurvey,
258258
survey_json: {
259-
showQuestionNumbers: false,
260259
elements:
261260
[
262261
{
@@ -295,7 +294,6 @@ import '@jspsych/plugin-survey/css/survey.css'
295294
const trial = {
296295
type: jsPsychSurvey,
297296
survey_json: {
298-
showQuestionNumbers: false,
299297
title: 'My questionnaire',
300298
completeText: 'Done!',
301299
pageNextText: 'Continue',
@@ -367,7 +365,6 @@ import '@jspsych/plugin-survey/css/survey.css'
367365
const trial = {
368366
type: jsPsychSurvey,
369367
survey_json: {
370-
showQuestionNumbers: false,
371368
title: 'Likert scale examples',
372369
pages: [
373370
{
@@ -470,7 +467,6 @@ import '@jspsych/plugin-survey/css/survey.css'
470467
const trial = {
471468
type: jsPsychSurvey,
472469
survey_json: {
473-
showQuestionNumbers: false,
474470
title: 'Conditional question visibility.',
475471
showNavigationButtons: "none",
476472
goNextPageAutomatic: true,
@@ -552,7 +548,6 @@ import '@jspsych/plugin-survey/css/survey.css'
552548
// set up the survey JSON for this trial
553549
// any question-specific variables come from the appropriate object in the question_variables array
554550
let survey_json = {
555-
showQuestionNumbers: false,
556551
title: 'Dynamically constructing survey trials.',
557552
completeText: 'Next >>',
558553
elements: [
@@ -677,7 +672,6 @@ import '@jspsych/plugin-survey/css/survey.css'
677672
showLabel: true,
678673
multiSelect: true
679674
}],
680-
showQuestionNumbers: "off",
681675
completeText: 'Next',
682676
};
683677

@@ -706,8 +700,7 @@ import '@jspsych/plugin-survey/css/survey.css'
706700
regex: "[rR]{1}[eE]{1}[dD]{1}"
707701
}],
708702
}],
709-
completeText: "Check my response",
710-
showQuestionNumbers: "off"
703+
completeText: "Check my response"
711704
};
712705

713706
const sound_trial = {
@@ -791,8 +784,7 @@ import '@jspsych/plugin-survey/css/survey.css'
791784
pattern: "aaa-9999"
792785
}
793786
}
794-
],
795-
showQuestionNumbers: false
787+
]
796788
};
797789

798790
timeline.push({

packages/plugin-survey/examples/basic_question_types.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@
106106
description: "Multi-select dropdown - please select all that apply. Try selecting lots of countries to see how the input area grows."
107107
}]
108108
}],
109-
showQuestionNumbers: "off",
110109
questionDescriptionLocation: "underInput",
111110
completeText: "Continue",
112111
widthMode: "static",

0 commit comments

Comments
 (0)