# The script part of the HTML statement in the template component, how to reference the data from the previous node

**URL:** <https://discourse.nodered.org/t/the-script-part-of-the-html-statement-in-the-template-component-how-to-reference-the-data-from-the-previous-node/93848>\
**Category:** General\
**Created:** [11 December 2024 08:31 UTC](https://discourse.nodered.org/t/the-script-part-of-the-html-statement-in-the-template-component-how-to-reference-the-data-from-the-previous-node/93848 "2024-12-11T08:31:08Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![gregorius](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gregorius/32/73816_2.png) [@gregorius](https://discourse.nodered.org/u/gregorius)\
**Post date:** [11 December 2024 09:54 UTC](https://discourse.nodered.org/t/the-script-part-of-the-html-statement-in-the-template-component-how-to-reference-the-data-from-the-previous-node/93848/11 "2024-12-11T09:54:52Z")

</div>

> [@uuuape](#):
>
> this is another picture。

could you perhaps provide a copy of the [flow](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506) your using?

---

_[View the full topic](https://discourse.nodered.org/t/the-script-part-of-the-html-statement-in-the-template-component-how-to-reference-the-data-from-the-previous-node/93848)._
