I watched the YouTube tutorial “Using Pavlovia Survey Responses in Experiments”. My ultimate goal is to show certain stimuli depending on the gender of participants (i.e., if you selected “female” show “female.png”).
However, as I am rather new to Pavlovia, I tried to start with the procedure as shown in the video. Thus, to display the age of participants. I got the following error code when I tried to run the experiment online " * TypeError: Cannot read properties of undefined (reading ‘_overallSurveyResults’)".
Thus, apparently the “$info_survey._overallSurveyResults[‘block1/age’]” function does not store the results of the survey, or at least not of my age variable.
I am beyond grateful for any advice! Thanks a lot in advance!
I created a new experiment to keep things as simple as possible. Again, I just tried to display what was typed into a simple single line input question.
You can see my example study here: Jule Schilling / test_psychopy · GitLab
I tried to run surveyResponse = survey.getResponse() as a custom code and $surveyResponse['block_1/question2'] for the textbox to display the answer but I got the following error code: * TypeError: Cannot read properties of undefined (reading ‘block_1/question2’).
It seems to me that the answers of the survey are not saved, although the total java script for the study looks fine to me.