Unable to hide radio button with checkbox

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.

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,

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

1 Like