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

No implicit form submission #215

Merged
merged 5 commits into from
Jun 15, 2020
Merged

No implicit form submission #215

merged 5 commits into from
Jun 15, 2020

Conversation

AmandaBirmingham
Copy link
Collaborator

@AmandaBirmingham AmandaBirmingham commented Jun 14, 2020

Fixes #189 Prevent survey submission when hitting enter in form (i.e., implicit submission).

Note that I have NOT prevented implicit submission on the admin email search form, because it has only one field (email input) and having the search happen when you hit return in that field is convenient, and because I figured admins could handle two ways to submit :)

However, I HAVE prevented implicit submission on the one-input-field form in source.jinja2 that retrieves samples in a kit when provided with a kit name, mostly because I was worried that end users would be confused if it acted differently than the other, more complicated forms. I would be interested on opinions from the team on whether to keep this approach or let all one-field forms (but not others) do implicit submission.

…e-api into no_implicit_form_submission

� Conflicts:
�	microsetta_private_api/static/input_util.js
@wasade wasade merged commit 296a306 into master Jun 15, 2020
@AmandaBirmingham AmandaBirmingham deleted the no_implicit_form_submission branch June 26, 2020 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Prevent survey submission when hitting enter in form
2 participants