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

Autocomplete options covering up dropdown options #73

Open
malco21 opened this issue Oct 26, 2021 · 3 comments
Open

Autocomplete options covering up dropdown options #73

malco21 opened this issue Oct 26, 2021 · 3 comments

Comments

@malco21
Copy link

malco21 commented Oct 26, 2021

When filling out a questionnaire after the first time, chrome (maybe other browsers as well) show autocomplete options that cover up the dropdown options. I've tried messing around with the "autocomplete" attribute on the parent form and individual inputs but haven't had any success.
image

@plynchnlm
Copy link
Member

We set autocomplete="off" on those fields precisely for this problem, and that used to work. "off" is the standard means of indicating that. It might be that some non-standard value would work around the problem, but we will have to experiment.

I would guess that if you are getting an autofill option, then you are submitting the form data with a "submit" button. As a work around, you can retrieve the form's data as JSON (see http://lhncbc.github.io/lforms/index.html#userData, or if using FHIR, http://lhncbc.github.io/lforms/index.html#retrieving-fhir-data) and send that to your server via AJAX.

@malco21
Copy link
Author

malco21 commented Oct 26, 2021

I'll give that a try. Thanks!

@plynchnlm
Copy link
Member

Just FYI, I also came across this idea (which I haven't tried yet): https://stackoverflow.com/a/64262948

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

2 participants