# Textarea is not holding the value

**URL:** https://discourse.nodered.org/t/textarea-is-not-holding-the-value/14634
**Category:** General
**Created:** [22 August 2019 08:56 UTC](https://discourse.nodered.org/t/textarea-is-not-holding-the-value/14634 "2019-08-22T08:56:37Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![Sanketp](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@Sanketp](https://discourse.nodered.org/u/Sanketp)
#### Post date: [22 August 2019 08:56 UTC](https://discourse.nodered.org/t/textarea-is-not-holding-the-value/14634/1 "2019-08-22T08:56:37Z")

</div>

My text area in node is not holding the value after clicking done.

---

<div class="post-metadata">

### Author: ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)
#### Post date: [22 August 2019 08:59 UTC](https://discourse.nodered.org/t/textarea-is-not-holding-the-value/14634/2 "2019-08-22T08:59:53Z")

</div>

This is it ?  
Are you on the correct forum ?  
Is it about node-red ?

---

<div class="post-metadata">

### Author: ![Sanketp](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@Sanketp](https://discourse.nodered.org/u/Sanketp)
#### Post date: [22 August 2019 09:01 UTC](https://discourse.nodered.org/t/textarea-is-not-holding-the-value/14634/3 "2019-08-22T09:01:31Z")

</div>

yes.  
I created node that has two field one is title and second one is description,  
I enter title as a single line in text input but for the description i need text area but as i type and press done it is not holding the data.  
Thank you

---

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [22 August 2019 09:03 UTC](https://discourse.nodered.org/t/textarea-is-not-holding-the-value/14634/4 "2019-08-22T09:03:28Z")

</div>

I'm sorry to hear that.

If you share some actual detail of what you've done then we may be able to help.

---

<div class="post-metadata">

### Author: ![Sanketp](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@Sanketp](https://discourse.nodered.org/u/Sanketp)
#### Post date: [22 August 2019 09:07 UTC](https://discourse.nodered.org/t/textarea-is-not-holding-the-value/14634/6 "2019-08-22T09:07:15Z")

</div>

[{"id":"46c9eabb.875c64","type":"start","z":"f7e2198f.cf84a8","Title":" fffff","Name":"fff","x":660,"y":120,"wires":[],"info":"fasdfasdfadsf"}]

---

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [22 August 2019 09:21 UTC](https://discourse.nodered.org/t/textarea-is-not-holding-the-value/14634/7 "2019-08-22T09:21:36Z")

</div>

Hi @Sanketp, what is that bit of json meant to be telling us?

Please pause for a moment and think if you are providing all the information you could be providing.

You say you are creating your own node and that it isn't saving all of the properties from its edit dialog. But you have not shared any of your code.

This is probably going to be an issue with your node's .html file - and whether you have properly defined its properties in its `defaults` object and whether you have defined its `<input>` fields properly.

---

<div class="post-metadata">

### Author: ![Sanketp](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@Sanketp](https://discourse.nodered.org/u/Sanketp)
#### Post date: [22 August 2019 09:47 UTC](https://discourse.nodered.org/t/textarea-is-not-holding-the-value/14634/8 "2019-08-22T09:47:09Z")

</div>

```
<div class="form-row">
    <label for="node-input-name"><i class="icon-tag"></i>Title</label>
    <input type="text" id="node-input-Title" placeholder="Title" style="width:70%;">
</div>

```

Description

```
  <input type="text" id="node-input-Name" placeholder="Description" >
</div>

```

these are two fields first one is taking input and holding it but in second one i want to have text area that could hold more lines of data not a single line. Thanks

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [22 August 2019 10:07 UTC](https://discourse.nodered.org/t/textarea-is-not-holding-the-value/14634/9 "2019-08-22T10:07:16Z")

</div>

@Sanketp once again you havent provided enough information. Please answer ALL the following questions and provice ALL the information requested

(NOTE: read [How to share code or flow json](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506) before providing the information)

1. what version of Node-RED and node.js are you using?
2. what version of node-red-dashboard are you using?
3. are you (A) trying to create a custom node or (B) having problems using a node in your flow?

If the answer is (A) please provide the complete xxx.js and xxx.html files you are using.

If the answer if (B) please provide a copy of your flow.

---

<div class="post-metadata">

### Author: ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)
#### Post date: [22 August 2019 10:10 UTC](https://discourse.nodered.org/t/textarea-is-not-holding-the-value/14634/10 "2019-08-22T10:10:37Z")

</div>

```auto
<input type="text"....

```

You want a [textarea](https://www.w3schools.com/tags/tag_textarea.asp) ?

---

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [22 August 2019 10:13 UTC](https://discourse.nodered.org/t/textarea-is-not-holding-the-value/14634/11 "2019-08-22T10:13:14Z")

</div>

@zenofmud I know they are all good questions to ask in general, but this is clearly about creating a custom node and asking about versions of node-red-dashboard etc isn't really going to help here.

@Sanketp Can you share the `defaults` object you have for your node in its .html file?

You need to remember that node property names are case sensitive. You have used `name` in one place and `Name` in another.

---

<div class="post-metadata">

### Author: ![Sanketp](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@Sanketp](https://discourse.nodered.org/u/Sanketp)
#### Post date: [22 August 2019 10:19 UTC](https://discourse.nodered.org/t/textarea-is-not-holding-the-value/14634/12 "2019-08-22T10:19:59Z")

</div>

@zenofmud its my custom node

this is my html file

```
<div class="form-row">
    <label for="node-input-name"><i class="icon-tag"></i>Title</label>
    <input type="text" id="node-input-Title" placeholder="Title" style="width:70%;">
</div>

```

Description

```
   <textarea rows="4" cols="60" id="node-input-oids" placeholder="e.g. 1.3.6.1.2.1.1.5.0" style="width:70%;"></textarea>
  
</div>

```

A simple node that conist of the Title and description of the task

---

<div class="post-metadata">

### Author: ![Sanketp](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@Sanketp](https://discourse.nodered.org/u/Sanketp)
#### Post date: [22 August 2019 10:20 UTC](https://discourse.nodered.org/t/textarea-is-not-holding-the-value/14634/13 "2019-08-22T10:20:56Z")

</div>

@zenofmud i just want to use text area as input for my description.

---

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [22 August 2019 10:26 UTC](https://discourse.nodered.org/t/textarea-is-not-holding-the-value/14634/14 "2019-08-22T10:26:13Z")

</div>

@Sanketp you don't need to repeat the same information. Please try to answer the questions that are being asked.

Please share the `defaults` property in your node's html file definition.

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [22 August 2019 10:28 UTC](https://discourse.nodered.org/t/textarea-is-not-holding-the-value/14634/15 "2019-08-22T10:28:56Z")

</div>

What can I say, I did suppot for years and need to make sure what someone says is what they mean which is not always the case. 😁
