# Cannot display flow.set/flow.get message

**URL:** <https://discourse.nodered.org/t/cannot-display-flow-set-flow-get-message/79239>\
**Category:** General\
**Created:** [16 June 2023 06:48 UTC](https://discourse.nodered.org/t/cannot-display-flow-set-flow-get-message/79239 "2023-06-16T06:48:21Z")\
**Posts on this page:** 8\
**Page:** 2

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [16 June 2023 12:10 UTC](https://discourse.nodered.org/t/cannot-display-flow-set-flow-get-message/79239/22 "2023-06-16T12:10:53Z")

</div>

I think @zenofmud was suggesting using the 'ui\_form' so you could enter an email address and a message which would be output when you pressed the 'SUBMIT' button in the Dashboard.

![a_email6](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/0/d013e45053b7db32f1d2402936f70b8a3fd9c836.png)

```auto
[{"id":"ddc41fb709236511","type":"ui_form","z":"f7434e0fe255a944","name":"Test Form","label":"","group":"1067c487a1fd6cfe","order":4,"width":0,"height":0,"options":[{"label":"Email","value":"Email","type":"email","required":true,"rows":null},{"label":"Message","value":"Message","type":"multiline","required":true,"rows":3}],"formValue":{"Email":"","Message":""},"payload":"","submit":"submit","cancel":"cancel","topic":"topic","topicType":"msg","splitLayout":"","className":"","x":160,"y":420,"wires":[["aa4de0d4366c8868"]]},{"id":"aa4de0d4366c8868","type":"debug","z":"f7434e0fe255a944","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":350,"y":420,"wires":[]},{"id":"1067c487a1fd6cfe","type":"ui_group","name":"Dashboard","tab":"85b1ab4efdea8f73","order":1,"disp":false,"width":"24","collapse":false,"className":""},{"id":"85b1ab4efdea8f73","type":"ui_tab","name":"Home","icon":"dashboard","disabled":false,"hidden":false}]

```

---

<div class="post-metadata">

**Author:** ![Loveflowersx](https://avatars.discourse-cdn.com/v4/letter/l/94ad74/32.png) [@Loveflowersx](https://discourse.nodered.org/u/Loveflowersx)\
**Post date:** [19 June 2023 05:22 UTC](https://discourse.nodered.org/t/cannot-display-flow-set-flow-get-message/79239/23 "2023-06-19T05:22:35Z")

</div>

When I press no, it has to store the email and that's it, and the variable I can handle as I wish.

Thank you very much!

Best regards

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [19 June 2023 06:19 UTC](https://discourse.nodered.org/t/cannot-display-flow-set-flow-get-message/79239/24 "2023-06-19T06:19:13Z")

</div>

Not sure what ' **no**' means in _"When I press **no** ,"_ ??  
Also, do you mean ' **store**' or ' **send**' the email ??

Heres' a simple flow to ' **store**' the email address and message in flow variables and then retrieve them.

 ![a_form_C](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/a/8a515bdd629b6f597aea7249e7964594322fb720.png)

```auto
[{"id":"ddc41fb709236511","type":"ui_form","z":"f7434e0fe255a944","name":"Test Form","label":"","group":"1067c487a1fd6cfe","order":4,"width":"10","height":"4","options":[{"label":"Email","value":"email","type":"email","required":true,"rows":null},{"label":"Message","value":"message","type":"multiline","required":true,"rows":3}],"formValue":{"email":"","message":""},"payload":"","submit":"submit","cancel":"cancel","topic":"topic","topicType":"msg","splitLayout":"","className":"","x":160,"y":420,"wires":[["018e01bacfcd1776"]]},{"id":"aa4de0d4366c8868","type":"debug","z":"f7434e0fe255a944","name":"Debug saving","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":660,"y":420,"wires":[]},{"id":"018e01bacfcd1776","type":"function","z":"f7434e0fe255a944","name":"store form inputs in flow variables","func":"flow.set('email', msg.payload.email);\nflow.set('message', msg.payload.message);\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":400,"y":420,"wires":[["aa4de0d4366c8868","f4c63f2fc8ef0716"]]},{"id":"f4c63f2fc8ef0716","type":"function","z":"f7434e0fe255a944","name":"get flow variables values","func":"msg.payload.email = flow.get('email');\nmsg.payload.message = flow.get('message');\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":370,"y":540,"wires":[["5dfa20efb8592bea"]]},{"id":"5dfa20efb8592bea","type":"debug","z":"f7434e0fe255a944","name":"Debug retrieve","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":660,"y":540,"wires":[]},{"id":"007bc34b4527a914","type":"comment","z":"f7434e0fe255a944","name":"Link needed to trigger the function node","info":"","x":400,"y":480,"wires":[]},{"id":"1067c487a1fd6cfe","type":"ui_group","name":"Dashboard","tab":"85b1ab4efdea8f73","order":1,"disp":false,"width":"24","collapse":false,"className":""},{"id":"85b1ab4efdea8f73","type":"ui_tab","name":"Home","icon":"dashboard","disabled":false,"hidden":false}]

```

The above flow will place the email address in `msg.payload.email`  
and the message in` msg.payload.message`

This is what the Form looks like on the Dashboard.  
 ![a_form_A](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/5/15c98b957e7a0cf6ed92776df4111d571bf9ee1e.png)

Here's a screenshot of the results in the named Debug nodes.

![a_form_B](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/3/63b0ccafc92e148d36327d6ae4a4589c3030cc38.png)

---

<div class="post-metadata">

**Author:** ![Loveflowersx](https://avatars.discourse-cdn.com/v4/letter/l/94ad74/32.png) [@Loveflowersx](https://discourse.nodered.org/u/Loveflowersx)\
**Post date:** [19 June 2023 06:26 UTC](https://discourse.nodered.org/t/cannot-display-flow-set-flow-get-message/79239/25 "2023-06-19T06:26:08Z")

</div>

I don't want to press any buttons. I just want to enter an email and store it in a variable to a flow.set to a flow.get. I don't want to send a text or anything.

I want to store the variables in there

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/3/839a00a35c8f4ba6d6cc77abf9ec355c2272f334.png)

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [19 June 2023 07:12 UTC](https://discourse.nodered.org/t/cannot-display-flow-set-flow-get-message/79239/26 "2023-06-19T07:12:00Z")

</div>

Just seen you have started another thread that looks exactly the same as this one.  
I clearly do not understand the issue you are facing and will leave it to the more specialised people here.

---

<div class="post-metadata">

**Author:** ![Loveflowersx](https://avatars.discourse-cdn.com/v4/letter/l/94ad74/32.png) [@Loveflowersx](https://discourse.nodered.org/u/Loveflowersx)\
**Post date:** [19 June 2023 07:17 UTC](https://discourse.nodered.org/t/cannot-display-flow-set-flow-get-message/79239/27 "2023-06-19T07:17:21Z")

</div>

Don't worry.

It's working! I was doing it right, I don't know why I didn't check it properly.

Thank you very much for your time, very kind.

Best regards

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [19 June 2023 07:21 UTC](https://discourse.nodered.org/t/cannot-display-flow-set-flow-get-message/79239/28 "2023-06-19T07:21:36Z")

</div>

Pleased you have got it working. After going through all these steps with you, it would be useful if you could publish the flow that worked for you, so other people can learn from this experience.

---

<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:** [18 August 2023 07:22 UTC](https://discourse.nodered.org/t/cannot-display-flow-set-flow-get-message/79239/29 "2023-08-18T07:22:20Z")

</div>

Closed on 18 August 2023 07:22 UTC

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

[Previous page](https://discourse.nodered.org/t/cannot-display-flow-set-flow-get-message/79239.md?page=1)
