-
Notifications
You must be signed in to change notification settings - Fork 494
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
Question about surveys #2712
Comments
I would love to understand this workflow as well. :) |
I did some digging today and I think I have some answers after looking through the code and playing in a local instance. Instead of the event looking up a particular survey by ID, each survey looks for an event. Models The Survey results are sent based on ID. So, if you wanted to disassociate results for each event individually, the above method wouldn't work. You'd need to run a command which creates a new, templated table entry using existing IDs as keys. Survey questions are stored in their own table. As long as you want the same questions on each event, you could quickly use SQL to add those records as well, with the UX I updated the templating in -# line 110
- if @surveys_after_event.any?
.col-md-12
%dt Survey:
%dd
= render partial: 'surveys/list', locals: { surveys: @surveys_after_event, conference: @conference } When participants click on the link, it takes them to a new page with the survey. The final problem has to do with submitting surveys. When the user submits, the survey page reloads instead of redirecting them somewhere logical. In our case, I'm redirecting back to the event page, but it could also make sense to take them to the Schedule or Registrations. To get the redirect to work easily, I added a method on the
# end of file
def event
return surveyable_id
end
# line 43
redirect_to conference_program_proposal_path(@conference, @survey.event) |
See openSUSE/osem#2712 for more. Small bugfix with the chat embed.
Can someone help me understand how surveys work? Specifically, if I create a survey in the Surveys section and select
after_event
, where are those displayed? Are they sent via email after each session? Or are they available on the event page?Second, if I have a general survey I want attached to every event, is that possible? Or do I need to recreate the survey for each event individually?
The text was updated successfully, but these errors were encountered: