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

Disable autocompletion of text forms #669

Closed
grocio opened this issue Feb 5, 2020 · 3 comments
Closed

Disable autocompletion of text forms #669

grocio opened this issue Feb 5, 2020 · 3 comments
Milestone

Comments

@grocio
Copy link

grocio commented Feb 5, 2020

Text forms provided by survey-text plugin have autocompletion feature, which is not appropriate for most of psychological experiments because participants can easily reuse the same response.

To address this possible problem, I added autocomplete="off" to the line 103 of jspsych-survey-text.js,

html += '<form id="jspsych-survey-text-form" autocomplete="off">'

It worked well at least for Chrome and Safari. If it doesn't cause any problems, I think autocomplete="off" should be so by default. Any suggestions?

@jodeleeuw
Copy link
Member

This is a great point. Thanks!

@jodeleeuw jodeleeuw added this to the 6.2 milestone Feb 6, 2020
@jodeleeuw
Copy link
Member

If you'd like to open a PR to make this change that would be awesome. It might be worth a quick mention somewhere in the plugin documentation as well.

@grocio
Copy link
Author

grocio commented Feb 8, 2020

Thanks for comments! I'll open a pull request.

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

No branches or pull requests

3 participants