# I added input feilds dynamically then how can i save data from those inputs in the defaults

**URL:** <https://discourse.nodered.org/t/i-added-input-feilds-dynamically-then-how-can-i-save-data-from-those-inputs-in-the-defaults/62687>\
**Category:** Developing Nodes\
**Created:** [16 May 2022 11:57 UTC](https://discourse.nodered.org/t/i-added-input-feilds-dynamically-then-how-can-i-save-data-from-those-inputs-in-the-defaults/62687 "2022-05-16T11:57:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Santhosh1](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@Santhosh1](https://discourse.nodered.org/u/Santhosh1)\
**Post date:** [16 May 2022 11:57 UTC](https://discourse.nodered.org/t/i-added-input-feilds-dynamically-then-how-can-i-save-data-from-those-inputs-in-the-defaults/62687/1 "2022-05-16T11:57:15Z")

</div>

![question](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/f/8fa591d2395f3f1f69de370368c863cb592e36c6.jpeg)  
i want save power,switch&speed values in the defaults which I generated from +add button

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [16 May 2022 12:04 UTC](https://discourse.nodered.org/t/i-added-input-feilds-dynamically-then-how-can-i-save-data-from-those-inputs-in-the-defaults/62687/2 "2022-05-16T12:04:51Z")

</div>

Hi & welcome to the forum.

We will need more info to assist.

- Are you creating a new contrib (add-in) node for others to install? or just using node-red?

> [@Santhosh1](#):
>
> I added input feilds dynamically

- how and to what?

> [@Santhosh1](#):
>
> how can i save get data from those inputs

- What data? What inputs?

---

<div class="post-metadata">

**Author:** ![Santhosh1](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@Santhosh1](https://discourse.nodered.org/u/Santhosh1)\
**Post date:** [16 May 2022 12:26 UTC](https://discourse.nodered.org/t/i-added-input-feilds-dynamically-then-how-can-i-save-data-from-those-inputs-in-the-defaults/62687/3 "2022-05-16T12:26:26Z")

</div>

I am trying to create custom node and got stuck.I added image to my question,can u give me solution

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [16 May 2022 12:34 UTC](https://discourse.nodered.org/t/i-added-input-feilds-dynamically-then-how-can-i-save-data-from-those-inputs-in-the-defaults/62687/4 "2022-05-16T12:34:58Z")

</div>

By the looks of it, your custom node is not using the dedicated [`editableList`](https://nodered.org/docs/api/ui/editableList/)

I would suggest you look at the source of any of the built in nodes that have an `editableList` for reference.

In short, you need to loop through the entries in `oneditsave` and store them as an object or array in the defaults. See here for more info: [Node edit dialog : Node-RED](https://nodered.org/docs/creating-nodes/edit-dialog)

---

<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:** [15 July 2022 12:35 UTC](https://discourse.nodered.org/t/i-added-input-feilds-dynamically-then-how-can-i-save-data-from-those-inputs-in-the-defaults/62687/5 "2022-07-15T12:35:40Z")

</div>

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