# \<button\> in 'ui template

**URL:** <https://discourse.nodered.org/t/button-in-ui-template/85601>\
**Category:** Dashboard\
**Created:** [16 February 2024 19:47 UTC](https://discourse.nodered.org/t/button-in-ui-template/85601 "2024-02-16T19:47:31Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [16 February 2024 20:10 UTC](https://discourse.nodered.org/t/button-in-ui-template/85601/2 "2024-02-16T20:10:47Z")

</div>

This topic may shed some light [HTML Template - use msg.payload](https://discourse.nodered.org/t/html-template-use-msg-payload/85557)  
The third example in the ui-template sidebar help text shows how to add the function to the scope.

---

_[View the full topic](https://discourse.nodered.org/t/button-in-ui-template/85601)._
