# Dropdown list: click several times on the same line

**URL:** <https://discourse.nodered.org/t/dropdown-list-click-several-times-on-the-same-line/75993>\
**Category:** Dashboard\
**Created:** [2 March 2023 13:39 UTC](https://discourse.nodered.org/t/dropdown-list-click-several-times-on-the-same-line/75993 "2023-03-02T13:39:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SuperNinja](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/superninja/32/5761_2.png) [@SuperNinja](https://discourse.nodered.org/u/SuperNinja)\
**Post date:** [2 March 2023 13:39 UTC](https://discourse.nodered.org/t/dropdown-list-click-several-times-on-the-same-line/75993/1 "2023-03-02T13:39:50Z")

</div>

Hi all,  
I have a drop-down list with various actions. For example resetting a counter. This counter must often be reset but I cannot click twice on the same line of the drop-down list. (Today I have to select another action to be able to click again on my "counter reset" line)

Is there a way to tell the dropdown that I would like to click as many times as I want on the same line?

---

<div class="post-metadata">

**Author:** ![hotNipi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hotnipi/32/383_2.png) [@hotNipi](https://discourse.nodered.org/u/hotNipi)\
**Post date:** [2 March 2023 14:09 UTC](https://discourse.nodered.org/t/dropdown-list-click-several-times-on-the-same-line/75993/2 "2023-03-02T14:09:43Z")

</div>

You can do kind of reset mechanism to clear last choice after a little delay.

See I placed first option as dummy and if you send same data, it will be chosen but you then filter that out as no action should follow.

```auto
[{"id":"b6da561d9b14e38a","type":"ui_dropdown","z":"09deee63c1b960f7","name":"","label":"","tooltip":"","place":"Select action","group":"08ac9b242ae51e8c","order":11,"width":0,"height":0,"passthru":false,"multiple":false,"options":[{"label":"Select action","value":-1,"type":"num"},{"label":"Action one","value":1,"type":"num"},{"label":"Action two","value":2,"type":"num"},{"label":"Action three","value":3,"type":"num"}],"payload":"","topic":"topic","topicType":"msg","className":"","x":380,"y":100,"wires":[["7c7631f7ac46e4b3"]]},{"id":"737447316fbbd0b8","type":"debug","z":"09deee63c1b960f7","name":"action","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":770,"y":100,"wires":[]},{"id":"7c7631f7ac46e4b3","type":"switch","z":"09deee63c1b960f7","name":"","property":"payload","propertyType":"msg","rules":[{"t":"neq","v":"-1","vt":"num"}],"checkall":"true","repair":false,"outputs":1,"x":570,"y":100,"wires":[["628c83b629bf0d2f","737447316fbbd0b8"]]},{"id":"4e3cf42d291060b2","type":"link in","z":"09deee63c1b960f7","name":"reset dropdown","links":["2e0921a373d3faab"],"x":285,"y":160,"wires":[["b6da561d9b14e38a"]]},{"id":"2e0921a373d3faab","type":"link out","z":"09deee63c1b960f7","name":"dropdown reset","mode":"link","links":["4e3cf42d291060b2"],"x":815,"y":160,"wires":[]},{"id":"628c83b629bf0d2f","type":"trigger","z":"09deee63c1b960f7","name":"wait and reset","op1":"","op2":"-1","op1type":"nul","op2type":"num","duration":"1","extend":false,"overrideDelay":false,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":660,"y":160,"wires":[["2e0921a373d3faab"]]},{"id":"08ac9b242ae51e8c","type":"ui_group","name":"Default","tab":"2acb95821445c8af","order":1,"disp":true,"width":"6","collapse":false,"className":""},{"id":"2acb95821445c8af","type":"ui_tab","name":"Home","icon":"dashboard","disabled":false,"hidden":false}]

```

And if the delay is not good choice for reset, you can make any logic to figure out when to send reset to dropdown.

---

<div class="post-metadata">

**Author:** ![SuperNinja](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/superninja/32/5761_2.png) [@SuperNinja](https://discourse.nodered.org/u/SuperNinja)\
**Post date:** [2 March 2023 15:33 UTC](https://discourse.nodered.org/t/dropdown-list-click-several-times-on-the-same-line/75993/3 "2023-03-02T15:33:07Z")

</div>

great it works!  
It led me to **another idea** : as it's a dynamic drop-down list, you just have to reload the list as soon as the device that receives the action, sends the ACK of good reception. The last command is deleted!

---

<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:** [16 March 2023 15:33 UTC](https://discourse.nodered.org/t/dropdown-list-click-several-times-on-the-same-line/75993/4 "2023-03-16T15:33:20Z")

</div>

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