# Get a msg from a Slider or other Node at startup

**URL:** <https://discourse.nodered.org/t/get-a-msg-from-a-slider-or-other-node-at-startup/75008>\
**Category:** General\
**Created:** [10 February 2023 20:00 UTC](https://discourse.nodered.org/t/get-a-msg-from-a-slider-or-other-node-at-startup/75008 "2023-02-10T20:00:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![psdonald42](https://avatars.discourse-cdn.com/v4/letter/p/59ef9b/32.png) [@psdonald42](https://discourse.nodered.org/u/psdonald42)\
**Post date:** [10 February 2023 20:00 UTC](https://discourse.nodered.org/t/get-a-msg-from-a-slider-or-other-node-at-startup/75008/1 "2023-02-10T20:00:48Z")

</div>

Hi All,

First Post.

I am creating a flow with a slider and a chart. I am also using a trigger to keep the chart flowing with the last msg. All good.  
However At startup there is no msg for the trigger to send and so the chart does not start when I start the flow.  
I have tried a few things like the Inject but that just sends a value through and does not give the slider a "read" or a value for it's msg.

I suspect this is the same for some other nodes.

Thanks

Peter

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [10 February 2023 22:01 UTC](https://discourse.nodered.org/t/get-a-msg-from-a-slider-or-other-node-at-startup/75008/2 "2023-02-10T22:01:21Z")

</div>

Hi Peter,

I think you will have to use ["persistent context variables"](https://nodered.org/docs/user-guide/context) to retrieve the last value.  
Inject it into the slider and chart so that it shows the right value from the start.

---

<div class="post-metadata">

**Author:** ![psdonald42](https://avatars.discourse-cdn.com/v4/letter/p/59ef9b/32.png) [@psdonald42](https://discourse.nodered.org/u/psdonald42)\
**Post date:** [12 February 2023 03:06 UTC](https://discourse.nodered.org/t/get-a-msg-from-a-slider-or-other-node-at-startup/75008/3 "2023-02-12T03:06:21Z")

</div>

I'll give it a try soon

Thank you

---

<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:** [13 April 2023 03:06 UTC](https://discourse.nodered.org/t/get-a-msg-from-a-slider-or-other-node-at-startup/75008/4 "2023-04-13T03:06:50Z")

</div>

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