Show field conditionally based on multiselect field

Hey everyone,

I’m having an issue that I haven’t been managing to solve all day now. I’m trying to show a field conditionally, based on wether the multiselect field my_multiselect contains a specific word. So if my multiselect field contains the tag “ExampleSelection” I want to show a field.

Because the when: option doesn’t work with fields that can contain multiple values, I’m thinking of using the disabled: option. I would need a sort of query that gets the value of my_multiselect and checks it against a hardcoded string. My pseudcode looks something like this:

disabled: ! page.my_multiselect.contains("ExampleSelection")

I know this is incorrect code, but I can’t really figure out how to do this. Does anyone have a suggestion?

You cannot use query syntax for the disabled property. It is also not possible to use the when option with a multiselect field. Currently, it only works with single value fields. There are feature requests for making when more versatile, e.g., More extensive field conditions · Kirby Feedback (which you might want to upvote).