Can conditional fields use checked/unchecked checkbox values as condition/filter?

Hi, is it possible to have checked/unchecked values of checkboxes (multiple options possibly selected) be the basis whether to show or hide other fields? Thank you!

1 Answer

1

Yes you can, using the conditions with a rule have contains with the specific value you want.
https://directus.io/features/conditional-fields

Hi, thank you, I saw the contains rule for a CSV-type checkbox now. I'm still wondering if this is possible for JSON checkboxes, because I only saw "null/not null" and "count" for the JSON-type

That's actually a great point, which sadly I don't have answer to :sweat_smile: You made me wonder actually, what's the difference between JSON and CSV types, I also see in filters JSON have the "count" but CSV don't. And in API calls both returns the same structure :thinking: