How to globally set custom bc_num_hours item

i’m trying to customize the bc_num_hours item globally in global_bc_items.yml:

  global_bc_num_hours:
    label: "Number of hours"
    widget: "number_field"
    value: 12
    min: 1
    max: 120
    step: 1

however, it seems that due to the global_ prefix the builtin bc_num_hours item is no longer recognized, and it uses the defaults. how can i fix this?

thanks a lot in advance,
sam

Do you need me to re-open your github issue for the same? I didn’t get around to finding time to replicate it.

Also - hi and welcome!

hi Jeff,

thanks for reopening it :slight_smile:
the original github issue was magically resolved. this is a different one, but still with the same goal.
i’ve updated the issue to make it clear.

(ref: wrong label for global form item · Issue #4132 · OSC/ondemand · GitHub)

To be clear - I don’t know if you can combine these features. If they do work, it’s by accident/coincidence.

consider it as a feature request then :slight_smile:

1 Like