# How to refresh editableList

**URL:** https://discourse.nodered.org/t/how-to-refresh-editablelist/6973
**Category:** General
**Created:** [18 January 2019 15:58 UTC](https://discourse.nodered.org/t/how-to-refresh-editablelist/6973 "2019-01-18T15:58:53Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Lionel](https://avatars.discourse-cdn.com/v4/letter/l/f9ae1b/32.png) [@Lionel](https://discourse.nodered.org/u/Lionel)
#### Post date: [18 January 2019 15:58 UTC](https://discourse.nodered.org/t/how-to-refresh-editablelist/6973/1 "2019-01-18T15:58:53Z")

</div>

Hi,

I have a node using an editableList.  
Each item content, for this editableList, depends on an other config parameter of the node. And when this parameter changes, I would like to refresh the editableList.  
I have not seen anything to do such a thing, can you help ?

Thx

---

<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: [18 January 2019 16:20 UTC](https://discourse.nodered.org/t/how-to-refresh-editablelist/6973/2 "2019-01-18T16:20:00Z")

</div>

HI @Lionel

what do you mean by refresh? Empty the list and add new elements? Keep the existing items but change something about them?

---

<div class="post-metadata">

### Author: ![Lionel](https://avatars.discourse-cdn.com/v4/letter/l/f9ae1b/32.png) [@Lionel](https://discourse.nodered.org/u/Lionel)
#### Post date: [21 January 2019 08:31 UTC](https://discourse.nodered.org/t/how-to-refresh-editablelist/6973/3 "2019-01-21T08:31:59Z")

</div>

Hi @knolleary

I want to partially keep the existing data, add or remove some items.

---

<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: [21 January 2019 09:47 UTC](https://discourse.nodered.org/t/how-to-refresh-editablelist/6973/4 "2019-01-21T09:47:16Z")

</div>

> [@Lionel](#):
>
> I want to partially keep the existing data, add or remove some items.

The docs for editableList are here: [EditableList Widget : Node-RED](https://nodered.org/docs/api/ui/editableList/) including the `addItem` and `removeItem` functions.

---

<div class="post-metadata">

### Author: ![Lionel](https://avatars.discourse-cdn.com/v4/letter/l/f9ae1b/32.png) [@Lionel](https://discourse.nodered.org/u/Lionel)
#### Post date: [21 January 2019 10:36 UTC](https://discourse.nodered.org/t/how-to-refresh-editablelist/6973/5 "2019-01-21T10:36:15Z")

</div>

Do you suggest, I remove all the items of the EditableList and then I re-populate ?  
I have tried this way, but I have had an issue with **.editableList('empty')**, it seems the EditableList is not cleared

---

<div class="post-metadata">

### Author: ![Lionel](https://avatars.discourse-cdn.com/v4/letter/l/f9ae1b/32.png) [@Lionel](https://discourse.nodered.org/u/Lionel)
#### Post date: [21 January 2019 10:43 UTC](https://discourse.nodered.org/t/how-to-refresh-editablelist/6973/6 "2019-01-21T10:43:31Z")

</div>

Sorry, it is my bad, I forget the # before the element name !!!  
Thx, it works fine now using you suggestion.
