The new conditional required action seems to work great, but I've found an edge case, where it causes problems:

  1. Create a select options component
  2. Allow multiple value on that component
  3. 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

Comments

danchadwick’s picture

Title: Conditional required action does not work with multiple select options component » Conditional rules does not work with multiple select options component
Status: Active » Fixed
StatusFileSize
new1.7 KB

Confirmed 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.

  • DanChadwick committed 8d3cbbc on 8.x-4.x
    Issue #2478813: Fixed Conditional rules does not work with multiple...

  • DanChadwick committed 358228d on
    Issue #2478813: Fixed Conditional rules does not work with multiple...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.