# Allowing user to edit a list variable of a custom node

**URL:** <https://discourse.nodered.org/t/allowing-user-to-edit-a-list-variable-of-a-custom-node/51524>\
**Category:** Developing Nodes\
**Created:** [26 September 2021 03:25 UTC](https://discourse.nodered.org/t/allowing-user-to-edit-a-list-variable-of-a-custom-node/51524 "2021-09-26T03:25:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kakyoism](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kakyoism/32/46283_2.png) [@kakyoism](https://discourse.nodered.org/u/kakyoism)\
**Post date:** [26 September 2021 03:25 UTC](https://discourse.nodered.org/t/allowing-user-to-edit-a-list-variable-of-a-custom-node/51524/1 "2021-09-26T03:25:32Z")

</div>

I've been able to specify node configuration UI using the standard `input` HTML elements, **but when it comes to a variable that is a list itself, what is a standard way of building its node-config UI?**

For example, through the config of a name-matching node, I might ask user to give a list of reference names in advance, so that the reference list can be matched against by the runtime input names.

The user will also need to add/remove/edit the reference list.

I checked the various custom nodes in [the official node repo](https://github.com/node-red/node-red-nodes), but couldn't find useful examples.

Thanks in advance!

---

<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:** [26 September 2021 07:25 UTC](https://discourse.nodered.org/t/allowing-user-to-edit-a-list-variable-of-a-custom-node/51524/2 "2021-09-26T07:25:49Z")

</div>

[https://nodered.org/docs/api/ui/editableList](https://nodered.org/docs/api/ui/editableList)

There are many source code examples eg The [change node](https://github.com/node-red/node-red/blob/4f23847546981324568b24ac406e1cbd7631b200/packages/node_modules/%40node-red/nodes/core/function/15-change.html#L116)

---

<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:** [25 November 2021 07:26 UTC](https://discourse.nodered.org/t/allowing-user-to-edit-a-list-variable-of-a-custom-node/51524/3 "2021-11-25T07:26:20Z")

</div>

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