# Global form items compatible with the dynamic auto fields

**URL:** https://discourse.openondemand.org/t/global-form-items-compatible-with-the-dynamic-auto-fields/4640
**Category:** Get Help
**Created:** [November 17, 2025, 6:19pm UTC](https://discourse.openondemand.org/t/global-form-items-compatible-with-the-dynamic-auto-fields/4640 "2025-11-17T18:19:52Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![hansen-m](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/hansen-m/32/2200_2.png) [@hansen-m](https://discourse.openondemand.org/u/hansen-m)
#### Post date: [November 17, 2025, 6:19pm UTC](https://discourse.openondemand.org/t/global-form-items-compatible-with-the-dynamic-auto-fields/4640/1 "2025-11-17T18:19:52Z")

</div>

Thinking the answer here is no, but wanted to confirm…

Are [global batch connect form items](https://osc.github.io/ood-documentation/latest/how-tos/app-development/interactive/form.html#global-batch-connect-form-items) (`global_`) compatible with [automatic predefined attribute fields](https://osc.github.io/ood-documentation/latest/how-tos/app-development/interactive/form.html#automatic-predefined-attributes) (`auto_`)? The use-case here would be for attributes like label, help, display, and potentially dynamic JS options.

When trying I get an error below -

```auto
undefined method `auto_queues' for an instance of BootstrapForm::FormBuilder
Extracted source (around line #41):
     
                  render :partial => "batch_connect/session_contexts/file_attachments", :locals => { form: form, attrib: attrib, field_options: field_options }
                else
                  form.send widget, attrib.id, all_options
                end
                
    # Append a wrapper div to hold additional info

```

Relevant part of my ondemad.d/\*.yml -

```yaml
global_bc_form_items:
  global_auto_accounts:
    display: true
  global_auto_queues:
    widget: auto_queues
    display: true
    label: "Partition"

```

Related note (and possibly just a documentation issue) is that the predefined attributes (`bc_`) like `bc_num_hours` appear to work as globals despite not being listed as a [form widget](https://osc.github.io/ood-documentation/latest/how-tos/app-development/interactive/form-widgets.html#form-widgets) and seem to work with or without the `widget` key defined somehow (browser cache or maybe matched by name?) -

```auto
global_bc_num_hours:
    widget: bc_num_hours # seems to work with or without this defined
    label: "Number of hours"
    value: 4
    max: 48

```

---

<div class="post-metadata">

### Author: ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)
#### Post date: [November 17, 2025, 6:37pm UTC](https://discourse.openondemand.org/t/global-form-items-compatible-with-the-dynamic-auto-fields/4640/2 "2025-11-17T18:37:16Z")

</div>

You should not be specifying the `widget` here for `auto_` related things, the fact that it allows you to seems to be a bug.

As to the `bc_` note - I’m pretty sure that’s a 4.1 thing to be able to do that. I don’t think that’s supported in 4.0 - so I’d have to check to see what’s happening there.

---

<div class="post-metadata">

### Author: ![hansen-m](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/hansen-m/32/2200_2.png) [@hansen-m](https://discourse.openondemand.org/u/hansen-m)
#### Post date: [November 17, 2025, 7:13pm UTC](https://discourse.openondemand.org/t/global-form-items-compatible-with-the-dynamic-auto-fields/4640/3 "2025-11-17T19:13:40Z")

</div>

Hm… so this should work? Because it just seems to appear as a plain text input box without the auto/dynamic functionality.

```auto
global_bc_form_items:
  global_auto_accounts:
    display: true
    label: "Account"
  global_auto_queues:
    display: true
    label: "Partition"

```

And in the app form…

```auto
form:
  - global_auto_accounts
  - global_auto_queues

```

---

<div class="post-metadata">

### Author: ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)
#### Post date: [November 17, 2025, 8:12pm UTC](https://discourse.openondemand.org/t/global-form-items-compatible-with-the-dynamic-auto-fields/4640/4 "2025-11-17T20:12:09Z")

</div>

I don’t think it should work in 4.0 because we had to add the support for `bc_` related stuff in 4.1 specifically. Looks like we need to add support for `auto_` related stuff too.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex015/uploads/osc/original/2X/b/bae70bd0ed39a3ae769c2108155f4cb3e9da8385.png) [@system](https://discourse.openondemand.org/u/system)
#### Post date: [May 16, 2026, 8:12pm UTC](https://discourse.openondemand.org/t/global-form-items-compatible-with-the-dynamic-auto-fields/4640/5 "2026-05-16T20:12:39Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
