The new conditional required action seems to work great, but I've found an edge case, where it causes problems:
- Create a select options component
- Allow multiple value on that component
- Create a required condition based on the value of the select component
If you render the select component as select element, it doesn't work at all (and you see a "Uncaught TypeError: value.toLowerCase is not a function" in the console).
If you render the compnent as checkboxes instead, it seems to work (only tried with a single value, maybe there could arise problems with multiple values??). However, you also have the console error.
I was using Google Chrome on Windows Vista while experiencing this problem. But I'm quite sure, that this is browser independent
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | webform-conditional_multi_select-2478813-1.patch | 1.7 KB | danchadwick |
Comments
Comment #1
danchadwick commentedConfirmed using a multi-select as a source in a rule in a conditional. The action is irrelevant. Single select, checkboxes, and radio buttons all work fine.
This patch also contains a minor comment fix regarding required conditionals.
Committed to 7.x-4.x and 8.x.