Skip to content

Publication of survey answers #13202

@NilHomedes

Description

@NilHomedes

Is your feature request related to a problem? Please describe.

Currently, survey results cannot be published on the platform and to communicate the results, admins have to use other components, such as pages, blogs, or attach the results in a file.

Describe the solution you'd like

As an admin, I want a feature that allows me to publish the results of a survey, once it is closed. Taking into account that some fields may contain personal data, I should be able to select which fields I want to publish and which not.

Concretely this story should tackle the following points:

  • Once the survey is closed, you can publish the results and select which questions you want to make public.
  • We should rethink the workflow for Open/Close forms and publish results. Taking into account the changes added to the survey component by Allow the creation of multiple surveys within the same Survey component #13152
  • Be able to select which fields I want to publish
  • Publish graphics of the results of a survey.
    • Short answer: Publish a table with all the answers (?)
    • Long answer: Publish a table with all the answers (?)
    • Single option: Pie or bar chart depending on the number of answer options. If participants has answer 2 options, then a pie graph. However, if more than 2 options have been answered, then we should show a bar graph.
    • Multiple option: Bar chart depending on the number of answer options answered.
    • Sorting: Publish a table with all the answers. (?)
    • Files: Not apply
    • Matrix (single): Stacked bar chart
    • Matrix (multiple): Stacked bar chart

We should use one of these libraries:
https://www.chartjs.org/
https://chartkick.com/

Describe alternatives you've considered
Publish a table with the results or process the data in anoher tool and, then, publish the graphs.

Mockup
TBD by @julietapasetti (rethink the admin flow Open form > Close form > Publish results).

Additional context
Matrix answers in Google Forms
Image

Framaforms (Single option question and multiple option)
Image

Short answer in Google forms
Image

Does this issue could impact on users private data?
Could impact on participants data, thus an admin could potentially publish answers containing personal data.

Acceptance Criteria

  • Given I’m an admin
    When I close a survey
    Then I can publish the results
  • Given I’m an admin
    When I want to publish the survey results
    Then I can choose what questions I want to publish
  • Given I’m an admin
    When I want to publish the survey results
    Then I see a message that alerts me to not publish the questions with personal data.
  • Given I’m an admin
    When I published the results
    Then I can unpublished them and choose again which questions to publish.
  • Given I’m a participant
    When a form is closed and the results published
    Then I can see the graphs results published
  • Given a survey with a single option question with 2 answer options
    When the results are published
    Then a pie graph should be use to present the results of that question
  • Given a survey with a single option question with more than 2 answer options
    When the results are published
    Then a stacked bar chart should be use to present the results of that question
  • Given a survey with a matrix question
    When the results are published
    Then a stacked bar chart should be use to present the results

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Merged

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions