Invert/show behavior for dynamic form widget data-option-for

Does data-option-for- support the inverse behavior if set to true? Or is there another way to do this? Or is this a feature request?

For example, only showing a a specific partition option if a specific account value is specified (and hidden/false for everything else):

    widget: select
    label: "partition"
      - ["open", "open"]
      - ["MGC Open", "mgc-open",
          data-option-for-rc-account-mgc: true

There’s no current support for that, I believe it’s this feature request: Dynamic form JS data-option-for hide by default · Issue #3345 · OSC/ondemand · GitHub

1 Like