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

Webform Autocomplete does not validate against list of options #293

Open
mariacha opened this issue Jul 25, 2024 · 2 comments
Open

Webform Autocomplete does not validate against list of options #293

mariacha opened this issue Jul 25, 2024 · 2 comments
Assignees

Comments

@mariacha
Copy link
Collaborator

Describe the bug
From Christian M in slack:

My assumption was that the autocomplete element on webform would restrict entries to one of the defined values. But it seems that it will let people submit anything (at least on the webinar webform). Any way to trigger a validation error if it isn't one of the values? Or do we have to switch to dropdown.

Response: It does seem like a webform bug. I opened an issue and submitted a patch:
https://www.drupal.org/project/webform/issues/3463864

@mariacha mariacha self-assigned this Jul 25, 2024
@mariacha
Copy link
Collaborator Author

This can be QAed on https://develop-wriflagship.pantheonsite.io/events/2024/8/test-zoom-event

The user can submit an empty value for the Country, or choose an autocomplete version, or type in the exact text of a country's name and all should work. But if they try to type in something else, it fails.

@mariacha mariacha assigned shannon-paton and unassigned mariacha Jul 26, 2024
@shannon-paton
Copy link

Looks good to me @mariacha

@mariacha mariacha assigned mariacha and unassigned shannon-paton Jul 30, 2024
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