unclecheese / silverstripe-display-logic

The Display Logic module allows you to add conditions for displaying or hiding certain form fields based on client-side behavior.
BSD 3-Clause "New" or "Revised" License
74 stars 71 forks source link

use isEqualTo with multiple values #100

Open mikeyc7m opened 6 years ago

mikeyc7m commented 6 years ago

Sorry for the feature request... it would be nice if isEqualTo() could accept an array of values instead of just one. I have an array of values of arbitrary length so I can't just chain orIf() statements. Or is there a way?

unclecheese commented 6 years ago

Yes, great idea. Are you comfortable implementing it yourself? JS would be listOfOptions.contains(this.getValue())

michalkleiner commented 1 year ago

@mikeyc7m still keen to look at this and provide a PR? If not, feel free to close the issue. Thanks!