Hello!
I am trying to implement Balloon Analogue Risk Task into Qualtrics (https://github.com/joyfulwei/Balloon-task-in-Qualtrics) - however, when I paste the given JS script I cannot go further because of the error:
Invalid JavaScript! You cannot save until you fix all errors: Unexpected token {
The code is quite long (I do not want to paste it unnecessarily here): https://github.com/joyfulwei/Balloon-task-in-Qualtrics/blob/master/Javascript%20code Maybe there is something obvious that can be spotted?
Solved
Error in JS (BART risk task)
Best answer by ahmedA
On line 172, add the closing bracket:This will fix the JS error, but it's quite an old code, so please test it a few times to ensure that the required data is being stored.
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.