# Problem with text input mode email address

**URL:** https://discourse.nodered.org/t/problem-with-text-input-mode-email-address/79295
**Category:** Dashboard
**Created:** [19 June 2023 06:16 UTC](https://discourse.nodered.org/t/problem-with-text-input-mode-email-address/79295 "2023-06-19T06:16:51Z")
**Posts on this page:** 6
**Page:** 1

<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:16 UTC](https://discourse.nodered.org/t/problem-with-text-input-mode-email-address/79295/1 "2023-06-19T06:16:51Z")

</div>

Hello everyone,

I want to put several text input but in email address mode.

How can I save the variable in a function node with flow.set and flow.get?

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

> Function 1  
> var email1 = msg.payload;  
> flow.set('email1',msg.payload);  
> return msg;

> Function 2  
> var email = flow.get('email1');  
> msg.payload = email;  
> return msg;

It doesn't work, how can I do it?

Thank you very much!

Best regards

---

<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: [19 June 2023 06:53 UTC](https://discourse.nodered.org/t/problem-with-text-input-mode-email-address/79295/2 "2023-06-19T06:53:07Z")

</div>

Your "function 2" has no wires connected to it's input so it's code will never be executed.

This has been explained in your other forum post.

---

<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:59 UTC](https://discourse.nodered.org/t/problem-with-text-input-mode-email-address/79295/3 "2023-06-19T06:59:21Z")

</div>

I want to take the flow.get here, when I get a true result, it sends a message

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/b/9b3bbec1959ce09a04b689a919ad7a3f57d56b1d.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 07:08 UTC](https://discourse.nodered.org/t/problem-with-text-input-mode-email-address/79295/4 "2023-06-19T07:08:18Z")

</div>

```auto
This has been explained in your other forum post.

```

I know, sorry if I can't put another post here. I also wanted to put it here because it is a dashboard problem, maybe there are 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:16 UTC](https://discourse.nodered.org/t/problem-with-text-input-mode-email-address/79295/5 "2023-06-19T07:16:13Z")

</div>

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

Thank you very much

---

<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: [19 July 2023 07:16 UTC](https://discourse.nodered.org/t/problem-with-text-input-mode-email-address/79295/6 "2023-07-19T07:16:41Z")

</div>

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