# How to specify the default value for a vector data in custom node HTML?

**URL:** <https://discourse.nodered.org/t/how-to-specify-the-default-value-for-a-vector-data-in-custom-node-html/51459>\
**Category:** Developing Nodes\
**Created:** [24 September 2021 04:57 UTC](https://discourse.nodered.org/t/how-to-specify-the-default-value-for-a-vector-data-in-custom-node-html/51459 "2021-09-24T04:57:10Z")\
**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:** [24 September 2021 04:57 UTC](https://discourse.nodered.org/t/how-to-specify-the-default-value-for-a-vector-data-in-custom-node-html/51459/1 "2021-09-24T04:57:10Z")

</div>

For a custom node definition like this

```auto
<script type="text/javascript">
    RED.nodes.registerType('hello_world',{
        category: 'function',
        color: '#a6bbcf',
        defaults: {
            single: {value: "single"},
            multiple: {value: [1, 2, 3, 4]}
        },
        inputs: 2,
....

```

Will the default value for the argument _ **multiple** _ work?

If not, what's the standard way to supply vector data to nodes?

---

<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:** [24 September 2021 05:49 UTC](https://discourse.nodered.org/t/how-to-specify-the-default-value-for-a-vector-data-in-custom-node-html/51459/2 "2021-09-24T05:49:40Z")

</div>

Have you tried it? Does it not work?

---

<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:** [23 November 2021 05:50 UTC](https://discourse.nodered.org/t/how-to-specify-the-default-value-for-a-vector-data-in-custom-node-html/51459/3 "2021-11-23T05:50:09Z")

</div>

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