# Pass Placeholder string via msg to ui\_dropdown

**URL:** <https://discourse.nodered.org/t/pass-placeholder-string-via-msg-to-ui-dropdown/73773>\
**Category:** Dashboard\
**Created:** [16 January 2023 18:20 UTC](https://discourse.nodered.org/t/pass-placeholder-string-via-msg-to-ui-dropdown/73773 "2023-01-16T18:20:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![KarolisL](https://avatars.discourse-cdn.com/v4/letter/k/a4c791/32.png) [@KarolisL](https://discourse.nodered.org/u/KarolisL)\
**Post date:** [16 January 2023 18:20 UTC](https://discourse.nodered.org/t/pass-placeholder-string-via-msg-to-ui-dropdown/73773/1 "2023-01-16T18:20:33Z")

</div>

Based on this link [node-red-dashboard/config-fields.md at master · node-red/node-red-dashboard · GitHub](https://github.com/node-red/node-red-dashboard/blob/master/config-fields.md) it should be possible to assign text to placeholder msg.place, but it doesn't work

My end goal is to have dynamic text before selection is done. If I understand it is not possible to pass msg.label

```auto
[
    {
        "id": "9fc31133c5fcda57",
        "type": "inject",
        "z": "ee47c5e8.e17bd",
        "g": "c79d322bfa03965c",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 120,
        "y": 1500,
        "wires": [
            [
                "1ab92735079bc89c"
            ]
        ]
    },
    {
        "id": "5434c618c577b6e3",
        "type": "ui_dropdown",
        "z": "ee47c5e8.e17bd",
        "g": "c79d322bfa03965c",
        "name": "Module4Tags",
        "label": "",
        "tooltip": "",
        "place": "",
        "group": "384ac69668844f73",
        "order": 7,
        "width": 0,
        "height": 0,
        "passthru": true,
        "multiple": true,
        "options": [
            {
                "label": "",
                "value": "",
                "type": "str"
            }
        ],
        "payload": "",
        "topic": "topic",
        "topicType": "msg",
        "className": "",
        "x": 460,
        "y": 1500,
        "wires": [
            []
        ]
    },
    {
        "id": "1ab92735079bc89c",
        "type": "change",
        "z": "ee47c5e8.e17bd",
        "g": "c79d322bfa03965c",
        "name": "",
        "rules": [
            {
                "t": "set",
                "p": "options",
                "pt": "msg",
                "to": "[\"M1100.StatDrvFwd\",\"M1100.StatDrvBwd\",\"M1100.ix_DrvRdy\",\"M1100.ix_MtSw\"]",
                "tot": "json"
            },
            {
                "t": "set",
                "p": "place",
                "pt": "msg",
                "to": "PlaceHolder",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 280,
        "y": 1500,
        "wires": [
            [
                "5434c618c577b6e3"
            ]
        ]
    },
    {
        "id": "384ac69668844f73",
        "type": "ui_group",
        "name": "Tags",
        "tab": "89a7ee01bc78fc67",
        "order": 2,
        "disp": true,
        "width": "6",
        "collapse": false,
        "className": ""
    },
    {
        "id": "89a7ee01bc78fc67",
        "type": "ui_tab",
        "name": "Trace2",
        "icon": "dashboard",
        "order": 7,
        "disabled": false,
        "hidden": false
    }
]

```

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [16 January 2023 18:27 UTC](https://discourse.nodered.org/t/pass-placeholder-string-via-msg-to-ui-dropdown/73773/2 "2023-01-16T18:27:49Z")

</div>

> The following configuration properties of ui widget nodes can be set by using a `msg.ui_control`

So set `msg.` `ui_control.palace`  
To `"Placeholder"`  
[edit]  
You can also use `{{label}}` in the config label field and send msg.label, or any other msg var you wish.

---

<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:** [30 January 2023 18:28 UTC](https://discourse.nodered.org/t/pass-placeholder-string-via-msg-to-ui-dropdown/73773/3 "2023-01-30T18:28:17Z")

</div>

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