Hello!
I’m using OOD 3.1.1 and trying to customise Batch Connect app form.
Below is part of form.yml file
form:
- gpus_select
- gpus_type
- gpus_num_v100
- gpus_num_a100
- gpus_per_task
attributes:
bc_dynamic_js: true
gpus_select:
widget: select
label: "Use GPU"
options:
- [
'No', 'No',
data-hide-gpus-type: true,
data-hide-gpus-num-v100: true,
data-hide-gpus-num-a100: true
]
- [
'Yes', 'Yes'
]
gpus_type:
widget: select
label: "GPU Type"
options:
- [
'Nvidia V100', 'Nvidia V100'
]
- [
'Nvidia A100', 'Nvidia A100'
]
gpus_per_task:
widget: "hidden_field"
In theory, the fields “gpus_type, gpus_num_v100, gpus_num_a100” should be hidden, but in fact the field “gpus_type” is hidden, the field “gpus_num_v100, gpus_num_a100” are displayed.
I’m surprised why this is so.
Need your advice.
Example when “gpus_select” is “Yes”
Example when “gpus_select” is “No”