This site uses cookies. By continuing to browse the site, you agree to our use of cookies. Find out more about cookies.
Skip to main content
Metadecidim's official logo
  • English Triar la llengua Elegir el idioma Choose language
    • Català
    • Castellano
Sign Up Sign In
  • Home
  • Processes
  • Assemblies
  • Initiatives
  • Consultations
  • Conferences
  • Help

Propose new functionalities for Decidim software

#DecidimRoadmap Designing Decidim together

Phase 1 of 1
Open 2019-01-01 - 2030-12-31
Process phases Submit a proposal
  • The process
  • Debates
  • Propose new features
  • News
chevron-left Back to list

Survey - Don’t allow user access to the next step in case of error

Avatar: Ouarda Oubahri Ouarda Oubahri
11/03/2022 15:03  

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

Admins can create surveys with mandatory or non-mandatory questions over several steps. The user can move from one step to another by clicking on "next" and at the last step he/she clicks on "submit". It is at the moment of submission that the verification of the validity of the information entered is done. So, if there is any errors, the user isn’t informed until the end. In addition, the error message is not explicit, doesn’t indicate where there was an error and does not redirect the user to the field(s) or step concerned.

Describe the solution you'd like

When filling in the fields for a survey if not all mandatory fields are filled, it would be appropriate to :

  • Not being able to access to the next step.
  • Display an error message.
  • Highlight in red the field.

Describe alternatives you've considered

In case that is not possible to do the verification at each step, we could also imagine that if there is any error, the entire form is displayed with all the fields with wrong information highlight so that the user can correct them.

Does this issue could impact on users private data?

No

Funded by

Could be funded by the city of Toulouse

  • Filter results for category: Surveys Surveys

List of Endorsements

Avatar: Pauline Bessoles Pauline Bessoles verified-badge
Endorsements count1
Survey - Don’t allow user access to the next step in case of error Comments 2

Reference: MDC-PROP-2022-03-16957
Version number 1 (of 1) see other versions
Check fingerprint

Fingerprint

The piece of text below is a shortened, hashed representation of this content. It's useful to ensure the content hasn't been tampered with, as a single modification would result in a totally different value.

Value: cff724e98913eeebdd59dd153f63bd2ebf2d300f879b8ff0da08c3489b8749ef

Source: {"body":{"en":"<p><strong>Is your feature request related to a problem? Please describe.</strong></p><p>Admins can create surveys with mandatory or non-mandatory questions over several steps. The user can move from one step to another by clicking on \"next\" and at the last step he/she clicks on \"submit\". It is at the moment of submission that the verification of the validity of the information entered is done. So, if there is any errors, the user isn’t informed until the end. In addition, the error message is not explicit, doesn’t indicate where there was an error and does not redirect the user to the field(s) or step concerned.</p><p><strong>Describe the solution you'd like</strong></p><p>When filling in the fields for a survey if not all mandatory fields are filled, it would be appropriate to :</p><ul><li>Not being able to access to the next step.</li><li>Display an error message.</li><li>Highlight in red the field.</li></ul><p><strong>Describe alternatives you've considered</strong></p><p>In case that is not possible to do the verification at each step, we could also imagine that if there is any error, the entire form is displayed with all the fields with wrong information highlight so that the user can correct them.</p><p><strong>Does this issue could impact on users private data?</strong></p><p>No</p><p><strong>Funded by</strong></p><p>Could be funded by the city of Toulouse</p>"},"title":{"en":"Survey - Don’t allow user access to the next step in case of error"}}

This fingerprint is calculated using a SHA256 hashing algorithm. In order to replicate it yourself, you can use an MD5 calculator online and copy-paste the source data.

Share:

link-intact Share link

Share link:

Please paste this code in your page:

<script src="https://meta.decidim.org/processes/roadmap/f/122/proposals/16957/embed.js"></script>
<noscript><iframe src="https://meta.decidim.org/processes/roadmap/f/122/proposals/16957/embed.html" frameborder="0" scrolling="vertical"></iframe></noscript>

Report inappropriate content

Is this content inappropriate?

Reason

2 comments

Order by:
  • Older
    • Best rated
    • Recent
    • Older
    • Most discussed
Avatar: Ivan Vergés Ivan Vergés verified-badge
11/03/2022 15:19
  • Get link Get link

Actually, this was already spotted when the step feature was developed, see https://github.com/decidim/decidim/pull/6108#pullrequestreview-416159973

I think the easiest alternative is to display the step with the error automatically after submitting. This could be done with a little bit of javascript.

Avatar: Ouarda Oubahri Ouarda Oubahri
11/03/2022 16:51
  • Get link Get link

Hello @microstudi thank you for your answer 😁 indeed I didn't notice that this was already reported

I agree with your solution! display the step with the error will certainly avoid the confusion of the users.

If there are errors in many steps, how do you imagine the behaviour?
I think it would be appropriate to redirect the user to the first step where the error was detected, then move to all the other next steps (the fields must be filled in with the previously entered data) and if there is an error on a field he will be able to see it highlighted in red. What do you think?

Add your comment

Sign in with your account or sign up to add your comment.

Loading comments ...

  • Terms and conditions of use
  • About the community
  • Download Open Data files
  • Metadecidim at Twitter Twitter
  • Metadecidim at Instagram Instagram
  • Metadecidim at YouTube YouTube
  • Metadecidim at GitHub GitHub
Creative Commons License Website made with free software.
Decidim Logo

Confirm

OK Cancel

Please sign in

decidim Sign in with Decidim Barcelona
Or

Sign up

Forgot your password?