When conditionals are created, each one is a decisive show or hide rule. If the condition is false, the opposite action is perform. There is no "no-op" in the event of a false condition.

Therefore, one would never want more than one conditional for the same target component. There is no warning when this happens, and it would be nice if there were one.

Comments

danchadwick’s picture

For posterity, here is a patch that prevents this with a validation error. After discussion with quicksketch, I think a warning is more appropriate. I am unsure where there might be valid used cases for multiple conditionals with the same target, particularly on multi-page forms. And also one might need to save the conditionals in a temporarily-invalid state while editing. This #1 patch won't be committed.

danchadwick’s picture

Status: Active » Fixed

A warning message is generated in lieu of an error. Committed to 7.x-4.x and 8.x

  • DanChadwick committed 55464e4 on 7.x-4.x
    Issue #2327025 by DanChadwick: Added creating more than one conditional...
  • DanChadwick committed 6a101b4 on 8.x-4.x
    Issue #2327025 by DanChadwick: Added creating more than one conditional...

Status: Fixed » Closed (fixed)

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