# I am aiming to create a node with multiple selection generated dynamically from an HTTP request

**URL:** <https://discourse.nodered.org/t/i-am-aiming-to-create-a-node-with-multiple-selection-generated-dynamically-from-an-http-request/58883>\
**Category:** Developing Nodes\
**Created:** [23 February 2022 14:27 UTC](https://discourse.nodered.org/t/i-am-aiming-to-create-a-node-with-multiple-selection-generated-dynamically-from-an-http-request/58883 "2022-02-23T14:27:42Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![GianniCeleste](https://avatars.discourse-cdn.com/v4/letter/g/2bfe46/32.png) [@GianniCeleste](https://discourse.nodered.org/u/GianniCeleste)\
**Post date:** [25 February 2022 14:34 UTC](https://discourse.nodered.org/t/i-am-aiming-to-create-a-node-with-multiple-selection-generated-dynamically-from-an-http-request/58883/13 "2022-02-25T14:34:37Z")

</div>

Hey Steve & al.,

Thanks for the support. I managed to do this part (i.e., call to the HTTP endpoint, and building the multiple selection accordingly). Here is the code, as you might have understood I never used HTML and js so 🙂

```auto
oneditprepare: function() {
            const url = 'https://casatest.free.beeceptor.com/tags'
            let tags = [];
            let selections = [];
            $.ajax({
                url: url,
                type: "GET",
                success: function(result){
                    tags = result.tags
                    console.log(tags)
                    for (let i = 0; i < tags.length; i++){
                        let obj = {value: tags[i], label: tags[i]}
                        selections.push(obj)
                    }
                    $("#node-input-tags").typedInput({type:"tags", types:[{
                        value: "tags",
                        multiple: true,
                        options: selections
                    }]})
                },
                error: function(result){
                    console.log('Error ${error}')
                }
            })
        }

```

Now the piece that I'm missing is: how do I access the selections on the _oneditsave_ method? I don't think I found the right reference anywhere.

Thanks a lot!

---

_[View the full topic](https://discourse.nodered.org/t/i-am-aiming-to-create-a-node-with-multiple-selection-generated-dynamically-from-an-http-request/58883)._
