OS (e.g. Win10): Win 10
PsychoPy version (e.g. 2024.2.4 Py 3.8): v2024.2.4
Standard Standalone Installation? (y/n) Y
**Do you want it to also run locally? (y/n N
What are you trying to achieve?:
Hi there,
I am trying to get a Pavlovia survey to work using the Survey Model File option. I’ve piloted and the survey looks fine but I get the following error when I run my experiment online:
- TypeError: Cannot read properties of undefined (reading ‘Row 1’)
Row 1 is in my json file. The survey is an information sheet. I have one consent question with five answers that a participant needs to say ‘Yes (option1)’ to. I also have a GDPR question which has two answers that a participant also needs to say yes to.
Here is a sample where Row 1 is used:
“name”: “page2”,
“elements”: [
{
“type”: “matrixdropdown”,
“name”: “question3”,
“title”: “Consent”,
“isRequired”: true,
“columns”: [
{
“name”: “Column 1”,
“title”: “Yes/No”
}
],
“choices”: [
{
“value”: “1”,
“text”: “Yes”
},
{
“value”: “2”,
“text”: “No”
}
],
“rows”: [
{
“value”: “Row 1”,
“text”: “I confirm that I am 18 years of age or over”
},
{
“value”: “Row 2”,
“text”: “I confirm that I have read and understand the information provided to me and that I have had the oppourtunity to ask questions”
},
{
“value”: “Row 3”,
“text”: “I understand that my participation is voluntary and that I am free to withdraw and terminate my participation, without providing reason at any time.”
},
{
“value”: “Row 4”,
“text”: “I understand that I am able to skip items I am not comfortable answering.”
},
{
“value”: “Row 5”,
“text”: “I agree to take part in the above study.”
}
]
}
],
“title”: “Consent Form”,
“description”: “Taking part (please tick the box that applies). By ticking ‘Yes’ I confirm that I agree to take part in this study. If you select ‘No’ to any of the questions in this section you will be taken to the end of the survey.”
},
What did you try to make it work?:
I’ve downloaded my JSON file.
Checked the JSON formatting (it looks fine).
I can see the file is synched in my Github.
I’ve changed the survey and experiment status between piloting/active/inactive
I’ve cleared the cache on my browser
I’ve tested to see if it works using SurveyID instead of Survey Model File
Thank you in advance for any ideas as to how I can get this survey working.