Complex conditional logic for Webform field in YAML format I have a complex scenario in Webforms, where field #states depends on multiple OR / AND conditional logic.
For Example:
field_d has a visibility condition where field_a must be filled and either of field_b or field_c must be filled. I am not sure how to proceed with that kind of Yaml logic. I have tried something like below but it seems not to work.
field_d has below conditional logic under field advance tab -
visible:

  ':input[name=&quot;field_a&quot;]':
      filled: true

  and

  (
  ':input[name=&quot;field_b&quot;]':
      filled: true

  or

  ':input[name=&quot;field_c&quot;]':
      filled: true
  )


Thanks.
Nested states can be tricky. Make it two conditions:
visible:
  - ':input[name=&quot;field_a&quot;]':
      filled: true
    ':input[name=&quot;field_b&quot;]':
      filled: true
  - or
  - ':input[name=&quot;field_a&quot;]':
      filled: true
    ':input[name=&quot;field_c&quot;]':
      filled: true