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

**URL:** <https://discourse.openondemand.org/t/invert-show-behavior-for-dynamic-form-widget-data-option-for/3407>\
**Category:** General Discussion\
**Tags:** question\
**Created:** [April 5, 2024, 5:54pm UTC](https://discourse.openondemand.org/t/invert-show-behavior-for-dynamic-form-widget-data-option-for/3407 "2024-04-05T17:54:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hansen-m](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/hansen-m/32/2200_2.png) [@hansen-m](https://discourse.openondemand.org/u/hansen-m)\
**Post date:** [April 5, 2024, 5:54pm UTC](https://discourse.openondemand.org/t/invert-show-behavior-for-dynamic-form-widget-data-option-for/3407/1 "2024-04-05T17:54:20Z")

</div>

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

```auto
  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](https://osc.github.io/ood-documentation/latest/how-tos/app-development/interactive/dynamic-form-widgets.html#hiding-select-options)

---

<div class="post-metadata">

**Author:** ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)\
**Post date:** [April 5, 2024, 6:38pm UTC](https://discourse.openondemand.org/t/invert-show-behavior-for-dynamic-form-widget-data-option-for/3407/2 "2024-04-05T18:38:28Z")

</div>

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](https://github.com/OSC/ondemand/issues/3345)
