Metadecidim
Sign in

Process

Co-creating the roadmap 2025–2027

finished not yet on protocol

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.

Documents

9 comments

  1. Great proposal! It would also be nice to add an accessible Captcha to open surveys in that case to make the life of spam bots a little more difficult.

    0 votes up 0 votes down
    1. We're lucky, we haven't had any spam on surveys yet.

      0 votes up 0 votes down
  2. 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.

    3 votes up 0 votes down
  3. This need came up several times with our clients and we are seriously considering developing a long-term solution (such as a checkbox in the BO that allows for this feature).

    @product what would you think of that?

    0 votes up 0 votes down
  4. In favour

    We have prepared two mockups for the long-term solution, which you can access here: https://drive.google.com/drive/folders/1G-Ow7FRKXRUI3Zaf1tN-iq_xP0CeinKo?usp=sharing

    We are excited to start development on this solution in the upcoming weeks. However, we believe that having an additional development day would greatly benefit our progress. If anyone is willing to chip in for one extra day, we would greatly appreciate it.

    Please feel free to share your feedback without hesitation!

    0 votes up 0 votes down
    1. Hi Simonas!
      The City of Zürich might be interested to chip in the required day. I'll write you a PM.

      1 votes up 0 votes down
  5. Hello @product ! We did a specification and gathered the finances necessary for the development: https://opensourcepolitics.notion.site/Decidim-Multiple-Survey-Responses-Enhancement-4827bf7a7e0d4b00b358cfa1492f4d33?pvs=4

    We would be very happy to receive your opinion on this topic because we would like to start developing it asap.

    Have a great day!

    0 votes up 0 votes down
    1. Looks good to me @simonas! My only feedback would be to make clear on the user side that this is not giving them the possibility to edit or overwriting their answer but submitting a new one.

      1 votes up 0 votes down
  6. This feature is now available as a module: https://github.com/alecslupu-pfa/decidim-module-survey_multiple_answers
    Co-financed by the Communauté d'agglomération Sophia Antipolis and the City of Zürich and developed by OSP <3

    1 votes up 0 votes down

Sign in with your Atmosphere account to comment.