# In node red drop down node not giving expected result incase of one selction item

**URL:** <https://discourse.nodered.org/t/in-node-red-drop-down-node-not-giving-expected-result-incase-of-one-selction-item/9067>\
**Category:** General\
**Created:** [16 March 2019 20:13 UTC](https://discourse.nodered.org/t/in-node-red-drop-down-node-not-giving-expected-result-incase-of-one-selction-item/9067 "2019-03-16T20:13:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![VIKRAMAS](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/vikramas/32/3955_2.png) [@VIKRAMAS](https://discourse.nodered.org/u/VIKRAMAS)\
**Post date:** [16 March 2019 20:13 UTC](https://discourse.nodered.org/t/in-node-red-drop-down-node-not-giving-expected-result-incase-of-one-selction-item/9067/1 "2019-03-16T20:13:35Z")

</div>

In nodered dropdown, I am using first drop down to select the controllerid and based on the controller id it'll push data for further choosing of data to choose luminar id. But while selcting the second dropdown values are populating correctly. But in second dropdown if the selction items are more than one then it is selecting otherwise it is not(no output from second drop down).

Below is the flow:  
[flow1.json](https://discourse.nodered.org/uploads/short-url/vQPHG4gaLm2Zrw2QmJpXJfstnP1.json) (5.1 KB)

Select `S000` from first dropdown and select `L000` from second drop down it will not give any output. But select `S001` from first dropdown and it'll give two options if you select either one it'll give output in `debug node`.

Am I missing something here.

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [16 March 2019 21:58 UTC](https://discourse.nodered.org/t/in-node-red-drop-down-node-not-giving-expected-result-incase-of-one-selction-item/9067/2 "2019-03-16T21:58:30Z")

</div>

Please use the code formatting

> [@How to share code or flow json](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506/3):
>
> Also, larger flows can now be saved as a txt or json file and uploaded directly to the post. Paul

---

<div class="post-metadata">

**Author:** ![VIKRAMAS](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/vikramas/32/3955_2.png) [@VIKRAMAS](https://discourse.nodered.org/u/VIKRAMAS)\
**Post date:** [16 March 2019 22:04 UTC](https://discourse.nodered.org/t/in-node-red-drop-down-node-not-giving-expected-result-incase-of-one-selction-item/9067/3 "2019-03-16T22:04:47Z")

</div>

Thank You!! I added as a json file

---

<div class="post-metadata">

**Author:** ![VIKRAMAS](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/vikramas/32/3955_2.png) [@VIKRAMAS](https://discourse.nodered.org/u/VIKRAMAS)\
**Post date:** [16 March 2019 22:20 UTC](https://discourse.nodered.org/t/in-node-red-drop-down-node-not-giving-expected-result-incase-of-one-selction-item/9067/4 "2019-03-16T22:20:09Z")

</div>

Got the Solution just removed the change node which was changing from msg.payload to msg.options and in function node only changed the output as msg.options.

But don't no why it worked as change node was giving the perfect result, with drop down it was not working.
