# Ui-radio-group - Dynamic Properties

**URL:** <https://discourse.nodered.org/t/ui-radio-group-dynamic-properties/90630>\
**Category:** Dashboard\
**Tags:** dashboard-2\
**Created:** [2 September 2024 07:35 UTC](https://discourse.nodered.org/t/ui-radio-group-dynamic-properties/90630 "2024-09-02T07:35:50Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![juanbal](https://avatars.discourse-cdn.com/v4/letter/j/e480ec/32.png) [@juanbal](https://discourse.nodered.org/u/juanbal)\
**Post date:** [2 September 2024 07:35 UTC](https://discourse.nodered.org/t/ui-radio-group-dynamic-properties/90630/1 "2024-09-02T07:35:50Z")

</div>

Hello all!  
I'm trying to create dynamic content for a ui-radio-group in DB2.  
I think I've followed the documentation properly and also reviewed [this other post](https://discourse.nodered.org/t/populate-dropdown/89298/2) but I can't still get the radio group to populate.

I'm sending msg.ui\_update.options as an array with value, label objects.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/7/97cfeb1968e67ffe25bf8f211e3ad9c28cb71159.png)

Is there some other configuration to be performed?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [2 September 2024 08:51 UTC](https://discourse.nodered.org/t/ui-radio-group-dynamic-properties/90630/2 "2024-09-02T08:51:23Z")

</div>

This function node works for me to set the radio group label and options. I can't immediately see how it differs from your debug example. No payload maybe?

```auto
msg = {
    "ui_update": {
        "label": "Livestock",
        "options": [
            {"value":"sheep", "label": "Ewes"}, 
            {"value":"goats", "label": "Nannies"}
        ]
    }
}
return msg;

```

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/5/b548013ffb18668ab1cd2515e036d9112c583625.png)

---

<div class="post-metadata">

**Author:** ![juanbal](https://avatars.discourse-cdn.com/v4/letter/j/e480ec/32.png) [@juanbal](https://discourse.nodered.org/u/juanbal)\
**Post date:** [2 September 2024 09:32 UTC](https://discourse.nodered.org/t/ui-radio-group-dynamic-properties/90630/3 "2024-09-02T09:32:21Z")

</div>

Thanks!  
you're payload and mine look identical, and neither of both is working for me.  
Here's my sample flow

```auto
[
    {
        "id": "2d0c429dc57e5397",
        "type": "tab",
        "label": "radios",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "5a48e9deef115886",
        "type": "function",
        "z": "2d0c429dc57e5397",
        "name": "function 5",
        "func": "msg = {\n \"ui_update\": {\n \"label\": \"Livestock\",\n \"options\": [\n {\"value\":\"sheep\", \"label\": \"Ewes\"}, \n {\"value\":\"goats\", \"label\": \"Nannies\"}\n]\n }\n}\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 525,
        "y": 180,
        "wires": [
            [
                "743d697d732e2d76",
                "ccdaf331c03c6ac2"
            ]
        ],
        "l": false
    },
    {
        "id": "dab4bc3e32e6a077",
        "type": "inject",
        "z": "2d0c429dc57e5397",
        "name": "Test1",
        "props": [
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "Test 1",
        "x": 410,
        "y": 180,
        "wires": [
            [
                "5a48e9deef115886"
            ]
        ]
    },
    {
        "id": "743d697d732e2d76",
        "type": "ui-radio-group",
        "z": "2d0c429dc57e5397",
        "group": "82cd48b1245f94e0",
        "name": "",
        "label": "Select Option:",
        "order": 2,
        "width": 0,
        "height": 0,
        "columns": 1,
        "passthru": false,
        "options": [],
        "payload": "",
        "topic": "topic",
        "topicType": "msg",
        "className": "",
        "x": 625,
        "y": 220,
        "wires": [
            []
        ],
        "l": false
    },
    {
        "id": "750937df1713f138",
        "type": "function",
        "z": "2d0c429dc57e5397",
        "name": "function 6",
        "func": "msg = {\n \"ui_update\":{\n \"label\" : \"Test label\",\n \"options\":[\n {\"value\":\"10\",\"label\":\"Kids\"},\n {\"value\":\"11\",\"label\":\"Playroom\"},\n {\"value\":\"12\",\"label\":\"Kitchen\"}\n]\n }\n}\n\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 525,
        "y": 220,
        "wires": [
            [
                "743d697d732e2d76",
                "ccdaf331c03c6ac2"
            ]
        ],
        "l": false
    },
    {
        "id": "984d3c31ed733170",
        "type": "inject",
        "z": "2d0c429dc57e5397",
        "name": "Test 2",
        "props": [
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "Test2",
        "x": 410,
        "y": 220,
        "wires": [
            [
                "750937df1713f138"
            ]
        ]
    },
    {
        "id": "ccdaf331c03c6ac2",
        "type": "debug",
        "z": "2d0c429dc57e5397",
        "name": "debug 996",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "true",
        "targetType": "full",
        "statusVal": "",
        "statusType": "auto",
        "x": 625,
        "y": 180,
        "wires": [],
        "l": false
    },
    {
        "id": "82cd48b1245f94e0",
        "type": "ui-group",
        "name": "Radio-button-test",
        "page": "f2fcbbc30322192c",
        "width": "6",
        "height": "1",
        "order": -1,
        "showTitle": true,
        "className": "",
        "visible": "true",
        "disabled": "false"
    },
    {
        "id": "f2fcbbc30322192c",
        "type": "ui-page",
        "name": "radio-button-test",
        "ui": "cb79bc4520925e32",
        "path": "/rbt",
        "icon": "home",
        "layout": "grid",
        "theme": "2220d11175c576f3",
        "order": -1,
        "className": "",
        "visible": "true",
        "disabled": "false"
    },
    {
        "id": "cb79bc4520925e32",
        "type": "ui-base",
        "name": "My UI",
        "path": "/dashboard",
        "includeClientData": true,
        "acceptsClientConfig": [
            "ui-notification",
            "ui-control",
            "ui-text"
        ],
        "showPathInSidebar": false,
        "showPageTitle": true,
        "titleBarStyle": "default"
    },
    {
        "id": "2220d11175c576f3",
        "type": "ui-theme",
        "name": "Theme DB2",
        "colors": {
            "surface": "#ffffff",
            "primary": "#0094ce",
            "bgPage": "#eeeeee",
            "groupBg": "#ffffff",
            "groupOutline": "#cccccc"
        },
        "sizes": {
            "pagePadding": "12px",
            "groupGap": "12px",
            "groupBorderRadius": "4px",
            "widgetGap": "12px",
            "density": "default"
        }
    }
]

```

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [2 September 2024 09:40 UTC](https://discourse.nodered.org/t/ui-radio-group-dynamic-properties/90630/4 "2024-09-02T09:40:20Z")

</div>

Your ui\_update works for me.

Check the version of your @flowfuse/node-red-dashboard.  
I have 1.15.0 and Node-red 4.0.2

---

<div class="post-metadata">

**Author:** ![juanbal](https://avatars.discourse-cdn.com/v4/letter/j/e480ec/32.png) [@juanbal](https://discourse.nodered.org/u/juanbal)\
**Post date:** [2 September 2024 10:01 UTC](https://discourse.nodered.org/t/ui-radio-group-dynamic-properties/90630/5 "2024-09-02T10:01:07Z")

</div>

Thanks for your help jbudd.  
I'm using exactly the same versions.  
Also tried @flowfuse/node-red-dashboard v1.14.0 with same result.

Tried 3 different node-red instances (all v.4.0.2), tried different clients and different browsers all without luck...

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [2 September 2024 13:13 UTC](https://discourse.nodered.org/t/ui-radio-group-dynamic-properties/90630/6 "2024-09-02T13:13:51Z")

</div>

> [@jbudd](#):
>
> Your ui\_update works for me.

Did you try importing the flow? It doesn't work for me either.

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [2 September 2024 13:24 UTC](https://discourse.nodered.org/t/ui-radio-group-dynamic-properties/90630/7 "2024-09-02T13:24:32Z")

</div>

> [@Colin](#):
>
> Did you try importing the flow?

Good question.  
I imported the flow  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/4/7496554188613ff20d7576c23d884e18bc0d6550.png)

Then I took just this function and put it in my flow

```auto
msg = {
    "ui_update":{
        "label" : "Test label",
        "options":[
            {"value":"10","label":"Kids"},
            {"value":"11","label":"Playroom"},
            {"value":"12","label":"Kitchen"}
        ]
    }
}

return msg;

```

I deployed and hit the inject button and this is what I see.

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/a/eabbf3531e7154c818adcc60a69d2b5543a26d0f.png)

> [@Colin](#):
>
> It doesn't work for me either.

I assume you hit deploy. Does it make a difference if you clear the browser cache? Restart Node-red? (I did not do find either of those necessary but there is something possibly cache related going on because I can't get back to my original, not dynamic, radio group options)

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [2 September 2024 13:26 UTC](https://discourse.nodered.org/t/ui-radio-group-dynamic-properties/90630/8 "2024-09-02T13:26:31Z")

</div>

Does the full flow work for you?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [2 September 2024 13:29 UTC](https://discourse.nodered.org/t/ui-radio-group-dynamic-properties/90630/9 "2024-09-02T13:29:14Z")

</div>

Isn't that a button group, not a radio group?

---

<div class="post-metadata">

**Author:** ![juanbal](https://avatars.discourse-cdn.com/v4/letter/j/e480ec/32.png) [@juanbal](https://discourse.nodered.org/u/juanbal)\
**Post date:** [2 September 2024 13:29 UTC](https://discourse.nodered.org/t/ui-radio-group-dynamic-properties/90630/10 "2024-09-02T13:29:54Z")

</div>

Hello jbudd  
you're screenshot seem to be based on ui-button-group ([see demo](https://dashboard-demos.flowfuse.cloud/dashboard/button-group)) but my flow contains ui-radio-group ([see demo](https://dashboard-demos.flowfuse.cloud/dashboard/radio-group))

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [2 September 2024 13:32 UTC](https://discourse.nodered.org/t/ui-radio-group-dynamic-properties/90630/11 "2024-09-02T13:32:46Z")

</div>

I suggest you open an issue at [Issues · FlowFuse/node-red-dashboard · GitHub](https://github.com/FlowFuse/node-red-dashboard/issues).

Include your flow in the description. Post a link back here.

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [2 September 2024 13:35 UTC](https://discourse.nodered.org/t/ui-radio-group-dynamic-properties/90630/12 "2024-09-02T13:35:17Z")

</div>

Doh! Forget I spoke. 🫢

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [2 September 2024 13:37 UTC](https://discourse.nodered.org/t/ui-radio-group-dynamic-properties/90630/13 "2024-09-02T13:37:11Z")

</div>

Actually, I am not sure that 1.15 includes dynamic updates. I think the docs may be ahead of the code. Hang on until the next release, which is due within a day or two I think.

---

<div class="post-metadata">

**Author:** ![juanbal](https://avatars.discourse-cdn.com/v4/letter/j/e480ec/32.png) [@juanbal](https://discourse.nodered.org/u/juanbal)\
**Post date:** [2 September 2024 13:50 UTC](https://discourse.nodered.org/t/ui-radio-group-dynamic-properties/90630/14 "2024-09-02T13:50:42Z")

</div>

Thanks Colin!  
[issue 1260](https://github.com/FlowFuse/node-red-dashboard/issues/1260) created.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [2 September 2024 14:14 UTC](https://discourse.nodered.org/t/ui-radio-group-dynamic-properties/90630/15 "2024-09-02T14:14:26Z")

</div>

@juanbal , @colin was correct in that the docs are a step ahead of the release.

this will be addressed soon.

[Dynamic prop support for radio group](https://github.com/FlowFuse/node-red-dashboard/commit/d20ace4ffdc35f0540a88e68a9f034d08fd99076) has been merged but there is an [outstanding release imminent](https://github.com/FlowFuse/node-red-dashboard/pull/1257).

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [2 September 2024 14:29 UTC](https://discourse.nodered.org/t/ui-radio-group-dynamic-properties/90630/16 "2024-09-02T14:29:23Z")

</div>

[node-red-dashboard (node) - Node-RED](https://flows.nodered.org/node/@flowfuse/node-red-dashboard) v1.16.0 now released.

It can take up to 30 mins for it to appear in Node-RED catalog under Manage Palette.

You can of course hurry this along with a manual install `npm i @flowfuse/node-red-dashboard@latest`

---

<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:** [16 September 2024 14:29 UTC](https://discourse.nodered.org/t/ui-radio-group-dynamic-properties/90630/17 "2024-09-16T14:29:44Z")

</div>

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