Score:1

Two visible states

it flag

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)$'
leymannx avatar
ne flag
Does it matter if the pattern is in quotes or not?
ab2211 avatar
it flag
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)$ `
Score:0
ne flag

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)$'
ab2211 avatar
it flag
Thanks, I tried this, but it doesn't work.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.