# Toggle html type radio

**URL:** <https://discourse.nodered.org/t/toggle-html-type-radio/75074>\
**Category:** Dashboard\
**Tags:** node-red-dashboard\
**Created:** [12 February 2023 15:09 UTC](https://discourse.nodered.org/t/toggle-html-type-radio/75074 "2023-02-12T15:09:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guudiin](https://avatars.discourse-cdn.com/v4/letter/g/3e96dc/32.png) [@Guudiin](https://discourse.nodered.org/u/Guudiin)\
**Post date:** [12 February 2023 15:09 UTC](https://discourse.nodered.org/t/toggle-html-type-radio/75074/1 "2023-02-12T15:09:01Z")

</div>

I don't know where I'm going wrong in this template, it doesn't return any value in msg.payload.  
What am I doing wrong?

```auto
[{"id":"bccb9899b9a343de","type":"ui_template","z":"64552269fb569901","group":"14a863b7b2e5e91a","name":"","order":0,"width":0,"height":0,"format":"<form>\n <input type=\"radio\" id=\"1\" name=\"switch\" value=\"1\">\n <label for=\"1\" style=\"background-color: blue;\">TCP/IP</label>\n <input type=\"radio\" id=\"0\" name=\"switch\" value=\"0\">\n <label for=\"0\" style=\"background-color: red;\">Serial</label>\n <button type=\"submit\">Enviar</button>\n</form>\n\n<script>\n this.scope.action = function(value) { return value; }\n</script>\n","storeOutMessages":true,"fwdInMessages":true,"resendOnRefresh":true,"templateScope":"local","className":"","x":1040,"y":1060,"wires":[["929b837394122ae9","e03f65e06876bf81"]]},{"id":"e03f65e06876bf81","type":"debug","z":"64552269fb569901","name":"debug 10","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1300,"y":1120,"wires":[]},{"id":"14a863b7b2e5e91a","type":"ui_group","name":"Default","tab":"0be9643108e709d3","order":2,"disp":true,"width":"6","collapse":false,"className":""},{"id":"0be9643108e709d3","type":"ui_tab","name":"Tabela","icon":"dashboard","order":1,"disabled":false,"hidden":false}]

```

---

<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 February 2023 16:09 UTC](https://discourse.nodered.org/t/toggle-html-type-radio/75074/2 "2023-02-12T16:09:41Z")

</div>

Did you take a look at the 'Sending a Message` example in the Help?  
 ![Screenshot 2023-02-12 at 11.08.14 AM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/4/140daae7ed2c17c0bb907aed66530502cd05b334.png)

---

<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:** [14 March 2023 16:10 UTC](https://discourse.nodered.org/t/toggle-html-type-radio/75074/3 "2023-03-14T16:10:16Z")

</div>

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