Currently it’s only possible to use Conditional Fields by adding one or multiple conditions to fields. “Show this field when this other field has the value X”.
It’s not possible to use something like an OR operator. That means it’s not possible for one field to be shown when one of a number of fields have a certain value.
It would be great to use the query syntax for this.
We discussed this topic on GitHub before:
https://github.com/getkirby/ideas/issues/419
https://github.com/getkirby/ideas/issues/231
+1 for being able to use query syntax, not just boolean conditionals, and using more advanced functions, not just the values of existing fields. Example: I have a files field, where the user can select 1 or more images for the page. If the user selects more than 1 image, the page will show a slideshow, and in that case, the user needs to pick a ‘transition’ between the slides. I only want the ‘transition’ field to show “if the number of images selected in the files field > 1”.
yes, or even just one image! if user has selected one image, then show
For me, having “>” and “<” would be very useful. Example: show a ‘warning’ in an info field if the user enters a value in another field “> 100”.
Just wanted to leave this here: https://github.com/rasteiner/k3-whenquery
have fields displayed inside one or multiple structure fields based on select condition (e.g.) on top level of the fields. Something like this:
SELECT > STRUCTURE > ANY FIELD (only visible when option selected in select field)