Propose new features
Designing Decidim together
Allow answering survey several times
Is your feature request related to a problem? Please describe.
A common use case for our platforms is that city employees help people to answer a survey on an iPad. Since surveys can only be answered once on a given device, they have to use the browser's Incognito mode and open a new window every time they start.
This has already been suggested but the previous time, it was cancelled for unrelated reasons.
Describe the solution you'd like
It would be great to be able to fill in a given survey several times, especially when anonymous.
Describe alternatives you've considered
It would be great to have this as a checkbox in the component settings. There would then be a "Fill in the survey another time" link after submitting.
Could this issue impact on users private data?
No.
Funded by
Awaiting funding.
List of Endorsements
Report inappropriate content
Is this content inappropriate?
Comment details
You are seeing a single comment
View all comments
In case anyone is interested, I have developed a little hack. It deactivates the check for an existing answer and generates a unique session_token (changes are line 69 and 144).
https://github.com/digidemlab/decidim-sweden/blob/72529ddda51ac69778bf7ddb8c09e43f8cd9d9ee/app/controllers/decidim/forms/concerns/has_questionnaire.rb#L69
In the future, a cleaner implementation would be to remove unicity on session_token and to use the form answer's id instead of session_token to access it.
Loading comments ...