# Dynamic DB2 Form - Boolean fields

**URL:** https://discourse.nodered.org/t/dynamic-db2-form-boolean-fields/96223
**Category:** Dashboard
**Tags:** dashboard-2
**Created:** [24 March 2025 15:55 UTC](https://discourse.nodered.org/t/dynamic-db2-form-boolean-fields/96223 "2025-03-24T15:55:50Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![SandeepA](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sandeepa/32/63225_2.png) [@SandeepA](https://discourse.nodered.org/u/SandeepA)
#### Post date: [24 March 2025 15:55 UTC](https://discourse.nodered.org/t/dynamic-db2-form-boolean-fields/96223/1 "2025-03-24T15:55:50Z")

</div>

Hi,

I am trying to put a field on a form which being created **dynamically** using msg.ui\_update.options  
I have field which is a drop down (using msg.ui\_update.dropdownOptions).  
This field is mandatory so marked 'required' as true.

How do i add a dropdown field which is of the type of Boolean ? And has true/false as the options.

Currently when i send an object to msg.ui\_update.dropdownOptions

The field is marked as required.

```auto
<object>.dropdown = <name of the drop down>;
<object>.value = true
<object>.label = 'true'

<object>.dropdown = <name of the drop down>;
<object>.value = false
<object>.label = 'false'

```

In above scenario - the dropdown shows true/false correctly - but user is unable to select false. Please suggest

---

<div class="post-metadata">

### Author: ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)
#### Post date: [24 March 2025 17:30 UTC](https://discourse.nodered.org/t/dynamic-db2-form-boolean-fields/96223/2 "2025-03-24T17:30:52Z")

</div>

> [@SandeepA](#):
>
> but user is unable to select false

I have seen/fixed a similar bug in other ui nodes. Please create an issue the dashboard repo, add a simple example flow. Then I will try to have a look at it.  
Bart

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [23 April 2025 17:31 UTC](https://discourse.nodered.org/t/dynamic-db2-form-boolean-fields/96223/3 "2025-04-23T17:31:30Z")

</div>

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