# How to escape colon in ui-control in dashboard 2?

**URL:** <https://discourse.nodered.org/t/how-to-escape-colon-in-ui-control-in-dashboard-2/94055>\
**Category:** Dashboard\
**Tags:** dashboard-2\
**Created:** [20 December 2024 19:20 UTC](https://discourse.nodered.org/t/how-to-escape-colon-in-ui-control-in-dashboard-2/94055 "2024-12-20T19:20:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rucksman007](https://avatars.discourse-cdn.com/v4/letter/r/a88e4f/32.png) [@rucksman007](https://discourse.nodered.org/u/rucksman007)\
**Post date:** [20 December 2024 19:20 UTC](https://discourse.nodered.org/t/how-to-escape-colon-in-ui-control-in-dashboard-2/94055/1 "2024-12-20T19:20:32Z")

</div>

I am currently moving all my dashboards from dashboard 1 to dashboard 2. Amongst a lot of other things, also the syntax for group visibility changed and I have a problem with a group with a colon in its name.

I am injection the following JSON into a ui-control:

```auto
{
    "groups": {
        "hide": [
            "MyPage:This is: My Group"
        ]
    }
}

```

Just for testing the new syntax, I tried the following which worked:

```auto
{
    "groups": {
        "hide": [
            "MyPage:testgroup"
        ]
    }
}

```

So obviously the colon and/or the spaces in the group name are a problem. I tried already some escape methods (backslash, single quotes, double quotes), but nothing worked. What would be the correct syntax for my group?

---

<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:** [20 December 2024 19:23 UTC](https://discourse.nodered.org/t/how-to-escape-colon-in-ui-control-in-dashboard-2/94055/2 "2024-12-20T19:23:22Z")

</div>

Looks like an oversight. Please raise an issue on the repository and we'll get it checked/fixed.

---

<div class="post-metadata">

**Author:** ![joepavitt](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/joepavitt/32/59722_2.png) [@joepavitt](https://discourse.nodered.org/u/joepavitt)\
**Post date:** [23 December 2024 16:59 UTC](https://discourse.nodered.org/t/how-to-escape-colon-in-ui-control-in-dashboard-2/94055/3 "2024-12-23T16:59:10Z")

</div>

We have a Pull Request open to fix this: [ui-control colon in group name by bartbutenaers · Pull Request #1554 · FlowFuse/node-red-dashboard · GitHub](https://github.com/FlowFuse/node-red-dashboard/pull/1554) I'm looking at it now.

---

<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:** [22 January 2025 17:00 UTC](https://discourse.nodered.org/t/how-to-escape-colon-in-ui-control-in-dashboard-2/94055/4 "2025-01-22T17:00:08Z")

</div>

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