-
Notifications
You must be signed in to change notification settings - Fork 694
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
functional survey #5533
functional survey #5533
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What was the problem? Looks good once the build passes.
|
||
{% do survey_questions.update({"_url": request.url })%} | ||
{{ survey_questions | tojson }} | ||
[% set survey = surveys|random|survey(fixedQuestions, url) %] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does the random do here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
surveys
is an array of survey objects. random
picks one of the available objects at runtime
Co-authored-by: Matthias Rohmer <12857772+matthiasrohmer@users.noreply.github.com>
The issue I was hitting is still an issue, but it was completely orthogonal to getting it to work. @matthiasrohmer was able to set me straight, I had to pass the object from grow to SSR, and then use different tags to pull in a version at request time, rather than at deploy time. |
This reverts commit 656d8c2.
No description provided.