Skip to content

empty string values break dynamic batch connect forms #4705

@johrstrom

Description

@johrstrom

From discourse: https://discourse.openondemand.org/t/cant-seem-to-get-data-hide-working/4584

Consider this form below. When using the "None" value (actual value "") in a select widget to hide another widget, this currently breaks the javascript as we're unable to handle the edge case.

---
cluster: pitzer

attributes:
  sn_gpu:
    widget: select
    label: GPU
    display: true
    options:
      - [ "None", "", data-hide-sn-virtualgl: true ]
      - [ "h100 (80GB)", "h100:1" ]
  sn_virtualgl:
    widget: "check_box"
    label: "Enable VirtualGL (if hardware OpenGL required)"
    checked_value: "yes"
    unchecked_value: "no"
form:
  - sn_gpu
  - sn_virtualgl

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions