# \<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:** 3

<div class="post-metadata">

**Author:** ![Pawel2420](https://avatars.discourse-cdn.com/v4/letter/p/c57346/32.png) [@Pawel2420](https://discourse.nodered.org/u/Pawel2420)\
**Post date:** [16 February 2024 21:19 UTC](https://discourse.nodered.org/t/button-in-ui-template/85601/3 "2024-02-16T21:19:12Z")

</div>

In ui\_tempate, HTML elements such as a button are dynamically created when a message is received. The third example generates a "[ngRepeat:dupes]" error. It only appears once when I click the newly created button.  
Solution [HTML Template - use msg.payload](https://discourse.nodered.org/t/html-template-use-msg-payload/85557) works OK.

---

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