Blueprint conditional field with multiple prerequisites possible?

Hi,

I would like to use “when: …” in my blueprint file to show a field only when a certain condition is true. But how can I show this field only when at least one of multiple conditions are met?

At the moment, the field “image” only shows when both conditions are met:

  city:
    label: Select a city
    type: select
    options:
      berlin: Berlin
      stockholm: Stockholm
    default: berlin

  category:
    label: Select a category
    type: select
    options:
      food: Food
      shopping: Shopping
    default: food

  # I want to show the following field only when 2 conditions are met:
  image:
    label: Image
    type: files
    when:
      city: berlin
      category: food

Thank you in advance!

Using an OR condition is currently not possible without a plugin, see GitHub - rasteiner/k3-whenquery: Conditionally show fields and sections. Better.

1 Like

Thanks @texnixe