# While reading and trying to help, I got stuck

**URL:** <https://discourse.nodered.org/t/while-reading-and-trying-to-help-i-got-stuck/13491>\
**Category:** Dashboard\
**Created:** [19 July 2019 23:47 UTC](https://discourse.nodered.org/t/while-reading-and-trying-to-help-i-got-stuck/13491 "2019-07-19T23:47:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [19 July 2019 23:47 UTC](https://discourse.nodered.org/t/while-reading-and-trying-to-help-i-got-stuck/13491/1 "2019-07-19T23:47:10Z")

</div>

While trying to help Hyper, I got stuck with how to set icons on `button` nodes.

Yes, I probably deserve a flame, but something is really wrong somewhere.

This is the flow - very basic:  
Press one button I get the `bolt` icon on the button. But pressing the other one for `power-off` nothing happens.

```auto
[{"id":"cb3d9097.a48be","type":"ui_button","z":"df652827.d02c3","name":"28 June","group":"373c4fb2.a22078","order":7,"width":"3","height":"1","passthru":false,"label":"{{msg.txtA}}","tooltip":"","color":"{{msg.fontclr}}","bgcolor":"{{msg.colour}}","icon":"","payload":"X","payloadType":"str","topic":"","x":3160,"y":1170,"wires":[[]]},{"id":"2ba495ce.931652","type":"function","z":"df652827.d02c3","name":"Power off","func":"//msg = {payload: '<font color = \"lime\"><i class=\"fa-bolt fa-2x\"></i></font>'};\n\nmsg = {txtA: '<i class=\"fa-power-off fa-2x\"></i>',fontclr: \"blue\"};\n\n//msg = {txtA: '<i class=\"fa fa-bolt fa-2x\"></i>',fontclr: \"yellow\"};\n//msg.icon = '<font color = \"black\" i class=\"fa fa-book fa-2x\"></i>';\n\n\nreturn msg;","outputs":1,"noerr":0,"x":2990,"y":1170,"wires":[["cb3d9097.a48be","8cf65c99.847ca"]]},{"id":"fb8d7d90.eda5e8","type":"inject","z":"df652827.d02c3","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":2900,"y":1120,"wires":[["2ba495ce.931652"]]},{"id":"8cf65c99.847ca","type":"debug","z":"df652827.d02c3","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":3150,"y":1130,"wires":[]},{"id":"d840eab6.06de98","type":"function","z":"df652827.d02c3","name":"Bolt","func":"//msg = {payload: '<font color = \"lime\"><i class=\"fa-bolt fa-2x\"></i></font>'};\n\n//msg = {txtA: '<i class=\"fa-power-off fa-2x\"></i>',fontclr: \"blue\"};\n\nmsg = {txtA: '<i class=\"fa fa-bolt fa-2x\"></i>',fontclr: \"yellow\"};\n//msg.icon = '<font color = \"black\" i class=\"fa fa-book fa-2x\"></i>';\n\n\nreturn msg;","outputs":1,"noerr":0,"x":2980,"y":1220,"wires":[["cb3d9097.a48be"]]},{"id":"6334bdda.56ca84","type":"inject","z":"df652827.d02c3","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":2890,"y":1270,"wires":[["d840eab6.06de98"]]},{"id":"373c4fb2.a22078","type":"ui_group","name":"Group 1","tab":"bca4b6a6.5ee09","order":1,"disp":true,"width":6},{"id":"bca4b6a6.5ee09","type":"ui_tab","z":"","name":"Pushbutton","icon":"dashboard","order":44,"disabled":false,"hidden":false}]

```

I have read other posts (as this one [button colours](https://discourse.nodered.org/t/examples-of-colour-change-button-and-switch/3650)) and somewhere I read a reply about putting the icon on a button and putting it in the `icon` field.

Which is what I did. I used to put it in the `label` field.

(Ok, just looked while getting the two names. Mine is in the `label` (not `icon`) field. But irrespective it does the same.)

I am having a real bad run just now. I have (kind of) killed my RPI WAP the other day . . . . . .  
(sorry.)

Why isn't the `power-off` icon working?
