How to use OR logic in Conditional Fields?

I created a radio button field in a page blueprint with 4 options

subtype:
    label: Block Type
    type: radio
    options:
      noimage: Regular
      bigimage: Image
      media: Media
      event: Event

Then I would like that other certain field is displayed either if the bigimage or event option is selected. I tried adding multiple when clauses to the same field:

image:
    label: Image
    type: files
    query: page.images
    multiple: false
    when:
      subtype: bigimage
    when:
      subtype: event

And I tried adding them to the same when clause (which I know shouldn’t work, since in the documentation adding multiple when clauses should work as an AND logic)

image:
    label: Image
    type: files
    query: page.images
    multiple: false
    when:
      subtype: bigimage 
      subtype: event

But both options did not work for my use case, both displayed the image field only when the subtype “event” was selected (so the last one did not work as an AND either)

Is there a way to make the same field to be displayed when subtype is bigimage OR event?

1 Like

There is an ideas issue: https://github.com/getkirby/kirby/issues/1641

Currently, this is not possible.

2 Likes