- Issue created by @mariacha1
- Merge request !493git commit -m 'Issue #3463864: Element autocomplete does not validate against list of options β (Open) created by mariacha1
- Status changed to Needs review
4 months ago 8:02pm 25 July 2024 - π¨π¦Canada Liam Morland Ontario, CA π¨π¦
Can you add a test for this?
- π¬π§United Kingdom mchaplin
I'm afraid I tried the patch
https://git.drupalcode.org/issue/webform-3463864/-/commit/a527618b7181cb...
based on the changes and it failed.The issue is that it is taking the input $value (a textual string eg 'location1 from my custom options') and then looking in a keyed array $options[$value] eg $options['location1 from my custom options'] which doesn't exist. It should be eg $options[1] etc.
So while it prevents the form from submitting if a bad value is entered, it also prevents the form from submitting if a valid option is chosen.
- First commit to issue fork.