rancher / dashboard

The Rancher UI
https://rancher.com
Apache License 2.0
462 stars 261 forks source link

Combination of conditional for show_if on questions #7097

Open cyn-rus opened 2 years ago

cyn-rus commented 2 years ago

Is your feature request related to a problem? Please describe. I was trying to use combination conditional for questions, for example

show_if: (a || b) && c

But it didn't work at all, and it was also mentioned on #17020. I think this should be requested as a feature, not a bug, as it hasn't been implemented yet

Describe the solution you'd like show_if supports combination of || and && (with parentheses)

richard-cox commented 2 years ago

@cyn-rus Can you confirm what version you're using?

Related rancher/rancher issue https://github.com/rancher/rancher/issues/17020

cyn-rus commented 2 years ago

@richard-cox I'm currently using Rancher v2.6.5 and yes I've actually seen that issue before. But this specific comment on that issue stated that the combination of || and && is not supported, and I think it will be good if we can use the combination of both operations.