-
-
Notifications
You must be signed in to change notification settings - Fork 681
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
breaking survey 2.0.0 plugin: title
cannot be a function
#3356
Comments
Actually, reversing survey only to 1.0.1 didn't fix it, I had to revert the whole JsPsych to v7 |
In version 8 the process for checking plugin parameters and converting functions to values is more strict, and this does indeed break the survey plugin. The workaround would be to make the entire @bjoluc what do you think about some kind of parameter or flag that would tell the core library to recursively check an object, without manually specifying all allowable values? |
After trying to adapt to the new system, I must admit it's quite cumbersome, especially for long surveys spanning multiple pages where it would be much more straightforward to have each element dynamically set rather than having to code a megafunction to set the whole survey dynamically. Is there any potential avenue for relaxing some of the restrictions in this survey to make it more user-friendly? |
Thanks for bumping, @DominiqueMakowski! |
I'm on board with that 👍 |
Yes! I agree it's too unusual to be flagged and handled by the core library. In most cases the 'jsPsych approach' would be to break the JSON out into separate parameters, but here we're intentionally not doing that to remain compatible with SurveyJS. I don't know why I hadn't thought of just adding this functionality into the plugin itself 🤦♀️ I'd be happy to do this. |
It seems like version 2.0.0 doesn't allow for the
title
field to be dynamically set via a function anymoreIt just doesn't show any title or description when title is a function.
The text was updated successfully, but these errors were encountered: