Issue with Dynamic Form Widgets

Hello all,

I use Dynamic Form Widgets function in ondemand-2.0.27 as following,

attributes:
node_type:
widget: select
options:
- [ ‘queue1’, ‘queue1’, data-max-bc-num-hours: 3, data-max-num-cores: 3 ]
- [ ‘queue2’, ‘queue2’, data-max-bc-num-hours: 1, data-max-num-cores: 1 ]
bc_num_hours:
widget: “number_field”
value: 1
min: 1
max: 3
num_cores:
widget: “number_field”
value: 1
min: 1
max: 3
form:

  • node_type
  • bc_num_hours
  • num_cores

Even though the maximum bc-num-hours in queue2 is set to 1, I can select up to 3 in the form. There is no problem with num-cores.
Also, when I deleted one of the two data-max-XXX in the node_type options, it worked as expected.

Maybe I can’t set two data-max-XXX in the node_type options ?

Apologies, I think you’re hitting this bug where mins and maxes only work for 1 thing.

1 Like