# Dashboard group name change

**URL:** <https://discourse.nodered.org/t/dashboard-group-name-change/41413>\
**Category:** Dashboard\
**Created:** [22 February 2021 10:31 UTC](https://discourse.nodered.org/t/dashboard-group-name-change/41413 "2021-02-22T10:31:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![devk](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/devk/32/37663_2.png) [@devk](https://discourse.nodered.org/u/devk)\
**Post date:** [22 February 2021 10:31 UTC](https://discourse.nodered.org/t/dashboard-group-name-change/41413/1 "2021-02-22T10:31:30Z")

</div>

I want to change the name of the dashboard group.  
However, the group is not being identified. There are several groups and I want to change them to a choice. I beg you.

1tab = 1~10 group,

````auto
type or paste code here
```<script>
(
    function($scope) 
    {
        $scope.$watch('msg.payload', function() 
        {
            if ($scope.msg.payload)
            {
                var get_id = $('.nr-dashboard-cardcontainer').attr('id');
                var get_id_array = get_id.split("_");
                
                //if(get_id_array[1] === "2")
                    $(".nr-dashboard-cardtitle").text($scope.msg.payload);
            }
        });
    }
)(scope);
</script>
````

---

<div class="post-metadata">

**Author:** ![devk](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/devk/32/37663_2.png) [@devk](https://discourse.nodered.org/u/devk)\
**Post date:** [22 February 2021 10:44 UTC](https://discourse.nodered.org/t/dashboard-group-name-change/41413/2 "2021-02-22T10:44:02Z")

</div>

```auto
[{"id":"eaa06319.fe7a","type":"tab","label":"플로우 1","disabled":false,"info":""},{"id":"3f020a74.ad72e6","type":"interval","z":"eaa06319.fe7a","name":"UI-1000","interval":"1000","onstart":false,"msg":"1","showstatus":false,"unit":"milliseconds","statusformat":"ss","x":250,"y":320,"wires":[["96cb5887.3beb08"]]},{"id":"96cb5887.3beb08","type":"function","z":"eaa06319.fe7a","name":"","func":"msg.payload = \"10-robot\";\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":420,"y":320,"wires":[["1f85416d.79096f"]]},{"id":"1f85416d.79096f","type":"ui_template","z":"eaa06319.fe7a","group":"3251b0e0.c514c","name":"","order":6,"width":0,"height":0,"format":"<script>\n(\n function($scope) \n {\n $scope.$watch('msg.payload', function() \n {\n if ($scope.msg.payload)\n {\n var get_id = $('.nr-dashboard-cardcontainer').attr('id');\n //var get_id_array = get_id.split(\"_\");\n \n $(\".nr-dashboard-cardtitle\").text($scope.msg.payload);\n }\n });\n }\n)(scope);\n</script>","storeOutMessages":true,"fwdInMessages":true,"resendOnRefresh":true,"templateScope":"global","x":600,"y":320,"wires":[[]]},{"id":"3251b0e0.c514c","type":"ui_group","z":"","name":"2 호기","tab":"54aaffaf.f5d9c","order":3,"disp":true,"width":7,"collapse":false},{"id":"54aaffaf.f5d9c","type":"ui_tab","z":"","name":"전체현황","icon":"dashboard","order":3,"disabled":false,"hidden":false}]

```

---

<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:** [24 March 2021 10:44 UTC](https://discourse.nodered.org/t/dashboard-group-name-change/41413/3 "2021-03-24T10:44:02Z")

</div>

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