# Toggle CSS with Boolean values from Inject

**URL:** <https://discourse.nodered.org/t/toggle-css-with-boolean-values-from-inject/53545>\
**Category:** Dashboard\
**Created:** [11 November 2021 03:21 UTC](https://discourse.nodered.org/t/toggle-css-with-boolean-values-from-inject/53545 "2021-11-11T03:21:13Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Chapanata](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/chapanata/32/49019_2.png) [@Chapanata](https://discourse.nodered.org/u/Chapanata)\
**Post date:** [11 November 2021 06:23 UTC](https://discourse.nodered.org/t/toggle-css-with-boolean-values-from-inject/53545/3 "2021-11-11T06:23:49Z")

</div>

I appreciate the help!

I figured out a much easier way to display this in fact. This below post made use of passing a JSON object to UI control and its much easier than what I initially wanted to do.

> [@Hiding group using "ui\_control" node and "button"](https://discourse.nodered.org/t/hiding-group-using-ui-control-node-and-button/8567):
>
> Hi all, I would hide group in my dashboard. I've tried all the solution which I've found in the forum but it still doesn't work. I have a "button" node which sends a JSON message to the "ui\_control" node. The problem probably is the format of the JSON message.I've tried the following format: {group:{hide:["tab\_name\_group\_name\_with\_underscores"],show:["tab\_name\_another\_group"],focus:true}} and {"group":{"hide":["Tab1\_Group\_1"]}} and also {tab:“tab\_name\_with\_underscores”,group:{hide:“group…

---

_[View the full topic](https://discourse.nodered.org/t/toggle-css-with-boolean-values-from-inject/53545)._
