Open duncanmcclean opened 6 months ago
You could workaround this by taking advantage of custom JavaScript conditions to check the field's value against multiple values.
Just posting this here for future me, since I was hacking on this little idea a while back...
Could possibly look into adding && and || operators, so you could do things like:
some_field: 'not bar && not foo'
I can get that working pretty easily, but obviously we'd need to think a bit more on the UX in the CP for this kind of thing.
Currently, you can only configure one condition for the same field in the blueprint/fieldset builder.
For example: if you configure two conditions like this on the same field, only one of them will actually be saved in the blueprint:
It would be nice if you could configure multiple conditions for a single field. Possibly with options whether the conditions should be AND (must be both
foo
andbar
) / OR (must be eitherfoo
orbar
).Related: statamic/cms#6008