Skip to content
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

Prevent survey submission when hitting enter in form #189

Closed
wasade opened this issue Jun 5, 2020 · 3 comments · Fixed by #215
Closed

Prevent survey submission when hitting enter in form #189

wasade opened this issue Jun 5, 2020 · 3 comments · Fixed by #215
Labels
Milestone

Comments

@wasade
Copy link
Member

wasade commented Jun 5, 2020

A lot of participants are unsure whether the registration / consent / surveys are stored. Having a simple message noting this would help. The suggested text from Kat and Dom is "Thank you for submitting your consent form and questionnaires! We have received these and they are stored in the database."

What we'd really want to do is only show this the first time they arrive. That may require some state tracking which sucks. So not sure how best to do this...

@wasade wasade added this to the UI updates milestone Jun 6, 2020
@wasade wasade added the good first issue Good for newcomers label Jun 6, 2020
@dhakim87
Copy link
Collaborator

I've noticed testing locally that hitting enter at certain times when filling out the surveys triggers a submit button unexpectedly. This would result in storing an unfinished survey. Is this the issue users are having an issue with?

One possibility for completing this without state tracking is adding links on the source page to view (can't edit without further api changes I don't think) their surveys.

@dhakim87
Copy link
Collaborator

If we're looking for a simpler change, we could also add another page to the workflow that tells them that they're done before redirecting them. So after they finish the covid survey - "Thanks, you're all set! Your blah blah blah has been all been received and stored. Now we're taking you to your accounts page. Redirecting in 5...4...3..."

@wasade
Copy link
Member Author

wasade commented Jun 12, 2020

Update: the decision is to disallow users to hit "enter" on the survey page. We'll resolve later how to notify the user a survey was definitely saved

@AmandaBirmingham AmandaBirmingham changed the title On the sources page, if human, note consent / surveys are saved Prevent survey submission when hitting enter in form Jun 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants