1

I'm struggling with two visible states. WIth thE UI this is not possible.

I have an extended text/html field, which shall be visible if the following conditions match:

Scenario 1:

System checked AND System everything except Google Kalender and Miscellaneous selected AND branch is NOT Gesundheit... ist.

Scenario 2:

Website checked AND System 2 everything except Google Kalender and Miscellaneous selected AND branch is NOT Gesundheit... ist.

That's what I've tried, but it doesn't work:

  - ':input[name="requirements__[System]"]':
      checked: true
    ':input[name="branch"]':
      '!value': 'Gesundheit, Fitness, Ärzte, Kliniken, Labore & Sozialwesen'
    ':input[name="system_"]':
      value: null
      pattern: ^(Gastronovi|OpenTable|Petleo|Resmio|Seatris)$
  - or
  - ':input[name="requirements__[Website]"]':
      checked: true
    ':input[name="branch"]':
      '!value': 'Gesundheit, Fitness, Ärzte, Kliniken, Labore & Sozialwesen'
    ':input[name="system_2"]':
      value: null
      pattern: '^(Aleno|Best Western Hotels Resort|Calendly|Dirs 21|HotelNetSolutions|OpenTable|Quandoo|Tablebooker|Terminland|Vioma)$'
2
  • Does it matter if the pattern is in quotes or not?
    – leymannx
    Commented Mar 31, 2023 at 5:58
  • If I just use one condition it works, but I am not able to put the two conditons for the visible states together. I use the following for test: ` ':input[name="requirements__[System]"]': checked: true ':input[name="branch"]': '!value': 'Gesundheit, Fitness, Ärzte, Kliniken, Labore & Sozialwesen' ':input[name="system_"]': value: null pattern: ^(Gastronovi|OpenTable|Petleo|Resmio|Seatris)$ `
    – ab2211
    Commented Apr 1, 2023 at 23:11

1 Answer 1

0

I have an old project of mine with complex conditions. There the YAML is written just a little bit different. In your case it would look like this (you see the extra line-break?):

-
  ':input[name="requirements__[System]"]':
    checked: true
  ':input[name="branch"]':
    '!value': 'Gesundheit, Fitness, Ärzte, Kliniken, Labore & Sozialwesen'
  ':input[name="system_"]':
    value: null
    pattern: ^(Gastronovi|OpenTable|Petleo|Resmio|Seatris)$
- or
-
  ':input[name="requirements__[Website]"]':
    checked: true
  ':input[name="branch"]':
    '!value': 'Gesundheit, Fitness, Ärzte, Kliniken, Labore & Sozialwesen'
  ':input[name="system_2"]':
    value: null
    pattern: '^(Aleno|Best Western Hotels Resort|Calendly|Dirs 21|HotelNetSolutions|OpenTable|Quandoo|Tablebooker|Terminland|Vioma)$'
1
  • Thanks, I tried this, but it doesn't work.
    – ab2211
    Commented Apr 2, 2023 at 21:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.