# Two timed messages to change icons

**URL:** <https://discourse.nodered.org/t/two-timed-messages-to-change-icons/9226>\
**Category:** Dashboard\
**Created:** [20 March 2019 10:31 UTC](https://discourse.nodered.org/t/two-timed-messages-to-change-icons/9226 "2019-03-20T10:31:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brugsezot](https://avatars.discourse-cdn.com/v4/letter/b/c5a1d2/32.png) [@Brugsezot](https://discourse.nodered.org/u/Brugsezot)\
**Post date:** [20 March 2019 10:31 UTC](https://discourse.nodered.org/t/two-timed-messages-to-change-icons/9226/1 "2019-03-20T10:31:18Z")

</div>

Hello,

I am trying to display a Fontawesome icon, and change that icon after a couple of seconds within the same flow. For instance, from a spinning state to a non-spinning state. I know how to show the icon with the change node:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/5/5fdbe8d523d5f9124e0019051b9efd0ea63154ac.png)

When i try to change msg.icon with a trigger node right after the change node, it will always put the new icon name string in the payload and not in msg.icon, like so:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/a/a30fa70ec3f6490e13f14c1020abc642bb507a89.png)

Any suggestions on how to solve this?

Gr.

Ed.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [20 March 2019 10:51 UTC](https://discourse.nodered.org/t/two-timed-messages-to-change-icons/9226/2 "2019-03-20T10:51:36Z")

</div>

I think the trigger node is only capable of setting the payload.  
You can do it with a Delay node though. Send the first message to the ui node, and also send it to a delay node. After the delay node use another Change node to set the new message and send that to the ui.

---

<div class="post-metadata">

**Author:** ![Brugsezot](https://avatars.discourse-cdn.com/v4/letter/b/c5a1d2/32.png) [@Brugsezot](https://discourse.nodered.org/u/Brugsezot)\
**Post date:** [20 March 2019 11:00 UTC](https://discourse.nodered.org/t/two-timed-messages-to-change-icons/9226/3 "2019-03-20T11:00:36Z")

</div>

Thank you Colin,

Very good suggestion. Just tried it and works like a charm.

Gr.

Ed.
