# How to copy string/value from message to clipboard

**URL:** <https://discourse.nodered.org/t/how-to-copy-string-value-from-message-to-clipboard/64333>\
**Category:** General\
**Created:** [24 June 2022 18:42 UTC](https://discourse.nodered.org/t/how-to-copy-string-value-from-message-to-clipboard/64333 "2022-06-24T18:42:29Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![tgottie](https://avatars.discourse-cdn.com/v4/letter/t/9fc348/32.png) [@tgottie](https://discourse.nodered.org/u/tgottie)\
**Post date:** [24 June 2022 18:42 UTC](https://discourse.nodered.org/t/how-to-copy-string-value-from-message-to-clipboard/64333/1 "2022-06-24T18:42:29Z")

</div>

I have a payload msg that is being sent, it has a string of text that I need to type into a specific text box that is moving through the flow. how can I get the string of text out of node red and typed into a text box?

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [24 June 2022 18:47 UTC](https://discourse.nodered.org/t/how-to-copy-string-value-from-message-to-clipboard/64333/2 "2022-06-24T18:47:37Z")

</div>

You can use the `debug` node.

1 - Add A debug node  
2 - Connect it to the output of whatever it is your need to copy text from  
3 - Open up the debug panel  
4 - Copy what you want

---

<div class="post-metadata">

**Author:** ![tgottie](https://avatars.discourse-cdn.com/v4/letter/t/9fc348/32.png) [@tgottie](https://discourse.nodered.org/u/tgottie)\
**Post date:** [24 June 2022 18:50 UTC](https://discourse.nodered.org/t/how-to-copy-string-value-from-message-to-clipboard/64333/3 "2022-06-24T18:50:09Z")

</div>

I have noticed being able to do that, is there a way to do that with out needing to manually do it? the idea is for it to copy and paste it automatically. one thought i was having is using the execute node and if there is a command line to put it that would copy the most current string value from debug node? but i havent been able to find anything like that either.

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [24 June 2022 18:52 UTC](https://discourse.nodered.org/t/how-to-copy-string-value-from-message-to-clipboard/64333/4 "2022-06-24T18:52:39Z")

</div>

> is there a way to do that with out needing to manually do it?

Not to my knowledge.

the `msg` travelling though your flow - is not actually seen by the browser - unless you attach a debug node for it to be printed - where the normal copy/paste rules apply

---

<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:** [24 June 2022 20:33 UTC](https://discourse.nodered.org/t/how-to-copy-string-value-from-message-to-clipboard/64333/5 "2022-06-24T20:33:46Z")

</div>

Where exactly are you trying to paste the result to? Is it a particular web page or application?

---

<div class="post-metadata">

**Author:** ![tgottie](https://avatars.discourse-cdn.com/v4/letter/t/9fc348/32.png) [@tgottie](https://discourse.nodered.org/u/tgottie)\
**Post date:** [24 June 2022 21:15 UTC](https://discourse.nodered.org/t/how-to-copy-string-value-from-message-to-clipboard/64333/6 "2022-06-24T21:15:45Z")

</div>

An application

---

<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:** [24 June 2022 21:34 UTC](https://discourse.nodered.org/t/how-to-copy-string-value-from-message-to-clipboard/64333/7 "2022-06-24T21:34:24Z")

</div>

Does it possibly have an API so you can send the data programatically?

---

<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:** [23 August 2022 21:34 UTC](https://discourse.nodered.org/t/how-to-copy-string-value-from-message-to-clipboard/64333/8 "2022-08-23T21:34:31Z")

</div>

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