# dropdown, switch and button 

**URL:** https://discourse.nodered.org/t/dropdown-switch-and-button/12138
**Category:** Dashboard
**Created:** [12 June 2019 17:34 UTC](https://discourse.nodered.org/t/dropdown-switch-and-button/12138 "2019-06-12T17:34:28Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Stroked\_Papy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/stroked_papy/32/9290_2.png) [@Stroked\_Papy](https://discourse.nodered.org/u/Stroked_Papy)
#### Post date: [12 June 2019 17:34 UTC](https://discourse.nodered.org/t/dropdown-switch-and-button/12138/1 "2019-06-12T17:34:28Z")

</div>

Hello  
New on node-red loses me with functions  
I would like to make a small software for raspberry with 2 dropdown, switch and button generate a command

I did that but it does not work

```auto
[{"id":"e45dceee.e4cea","type":"ui_button","z":"56455034.75b74","name":"","group":"b3f56356.110cc","order":4,"width":0,"height":0,"passthru":false,"label":"button","tooltip":"","color":"","bgcolor":"","icon":"","payload":"","payloadType":"str","topic":"","x":490,"y":320,"wires":[["6c44775c.1018d8"]]},{"id":"b3f56356.110cc","type":"ui_group","z":"","name":"Start gigi","tab":"d9ef1446.fd6398","order":1,"disp":true,"width":"6","collapse":false},{"id":"d9ef1446.fd6398","type":"ui_tab","z":"","name":"Gigi","icon":"dashboard","order":1,"disabled":false,"hidden":false}]

```

thank you very much for your help

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [12 June 2019 18:09 UTC](https://discourse.nodered.org/t/dropdown-switch-and-button/12138/2 "2019-06-12T18:09:07Z")

</div>

All you have in this flow is a button/ If you want tomething to happen when you press it, you have to send the msg from the button to some other node.

Attach a debug node to the button node and press 'deploy' thengo press the button and come back and look at the debug tabin the right sidebar. Here you will see what the msg that the button sent.

You can add a switch to the page and configure it to show on the same page as the button and tie that to a debug node and play and see what comes out.
