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):

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

https://osc.github.io/ood-documentation/latest/how-tos/app-development/interactive/dynamic-form-widgets.html#hiding-select-options

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