# Unable to hide radio button with checkbox

**URL:** <https://discourse.openondemand.org/t/unable-to-hide-radio-button-with-checkbox/3408>\
**Category:** Get Help\
**Tags:** question\
**Created:** [April 8, 2024, 1:09pm UTC](https://discourse.openondemand.org/t/unable-to-hide-radio-button-with-checkbox/3408 "2024-04-08T13:09:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mnakao](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/mnakao/32/1001_2.png) [@mnakao](https://discourse.openondemand.org/u/mnakao)\
**Post date:** [April 8, 2024, 1:09pm UTC](https://discourse.openondemand.org/t/unable-to-hide-radio-button-with-checkbox/3408/1 "2024-04-08T13:09:41Z")

</div>

Hi,

I have used Open OnDemand 3.1.1.  
From Open OnDemand 3.1, the.data-hide directive also supports check boxes.

However, the form.yml below does not work as expected.  
The jupyter radio button is not hidden.

```auto
form:
  - show_details
  - jupyter
attributes:
  show_details:
    widget: check_box
    label: "Show details"
    html_options:
      data:
        hide-jupyter-when-unchecked: true
  jupyter:
    widget: radio_button
    label: "Jupyter"
    options:
      - ["Jupyter Lab", "0"]
      - ["Jupyter Notebook", "1"]

```

If you set `widget: radio_button` above to `widget: select`, it works as expected.

Doesn’t the data-hide directive support radio buttons?

Thanks,

---

<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 10, 2024, 1:38pm UTC](https://discourse.openondemand.org/t/unable-to-hide-radio-button-with-checkbox/3408/2 "2024-04-10T13:38:42Z")

</div>

That appears to be a bug (or at least missing functionality).

I’ve filed this ticket upstream: [data-hide does not work on radio buttons · Issue #3506 · OSC/ondemand · GitHub](https://github.com/OSC/ondemand/issues/3506)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/osc/original/2X/b/bae70bd0ed39a3ae769c2108155f4cb3e9da8385.png) [@system](https://discourse.openondemand.org/u/system)\
**Post date:** [October 7, 2024, 1:39pm UTC](https://discourse.openondemand.org/t/unable-to-hide-radio-button-with-checkbox/3408/3 "2024-10-07T13:39:14Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
