# dropdown elements not showing!!! 

**URL:** <https://forum.wixstudio.com/t/dropdown-elements-not-showing/35410>\
**Category:** Ask the community\
**Tags:** wix-forms, question, code\
**Created:** [September 15, 2022, 11:22am UTC](https://forum.wixstudio.com/t/dropdown-elements-not-showing/35410 "2022-09-15T11:22:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![delaramhamraz](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/delaramhamraz/32/34698_2.png) [@delaramhamraz](https://forum.wixstudio.com/u/delaramhamraz)\
**Post date:** [September 15, 2022, 11:22am UTC](https://forum.wixstudio.com/t/dropdown-elements-not-showing/35410/1 "2022-09-15T11:22:23Z")

</div>

Hi everyone!  
I am making conditional forms. one of my conditions is that, if someone chooses “no” from a dropdown, the next dropdown will be showing and they can choose from it.  
I am able to do the colapse and expand condition, However, when I choose collapsed as a default value all the elements are gone!  
If I uncheck collapsed, the elements will appear again!  
any ideas on how to keep the “collapsed” checked and being able to see the choices of the dropdown?

![](https://us1.discourse-cdn.com/wix/original/3X/7/3/73ad2f664a5a9089b3107034c1985fd54341ea9b.png)

![](https://us1.discourse-cdn.com/wix/original/3X/a/5/a500f51c7741c80c9f8acbcdbfced44ff2d60762.png)

---

<div class="post-metadata">

**Author:** ![bwprado](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/bwprado/32/7220_2.png) [@bwprado](https://forum.wixstudio.com/u/bwprado)\
**Post date:** [September 15, 2022, 11:43am UTC](https://forum.wixstudio.com/t/dropdown-elements-not-showing/35410/2 "2022-09-15T11:43:49Z")

</div>

What do you mean with: “when I selected collapsed as a default value all the elements are gone”? Collapsed as a default value only collapses the selected element, only if they are inside a container and you are collapsing that container.

---

<div class="post-metadata">

**Author:** ![delaramhamraz](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/delaramhamraz/32/34698_2.png) [@delaramhamraz](https://forum.wixstudio.com/u/delaramhamraz)\
**Post date:** [September 15, 2022, 12:15pm UTC](https://forum.wixstudio.com/t/dropdown-elements-not-showing/35410/3 "2022-09-15T12:15:19Z")

</div>

for my second dropdown, i want it to be collapsed and be visible only if the clients answer “NO” to the previous question.  
so i chosed collapsed as a default value for this dropdown since i don’t want it to show.  
Now when clients answer “NO”, the dropdown shows(expands) but without it’s choices?  
how can i bring back the choices of the dropdown?

---

<div class="post-metadata">

**Author:** ![delaramhamraz](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/delaramhamraz/32/34698_2.png) [@delaramhamraz](https://forum.wixstudio.com/u/delaramhamraz)\
**Post date:** [September 15, 2022, 12:25pm UTC](https://forum.wixstudio.com/t/dropdown-elements-not-showing/35410/4 "2022-09-15T12:25:45Z")

</div>

I found the solution I guess, insteqd of choosing collapse as default value, I had to put it in my code.

```
$w ( "#dropdown3" ). collapse (); 
//DROPDOWN4 
$w ( "#dropdown4" ). onChange ( **function** () { 
    **let** dropdownvalue = $w ( "#dropdown4" ). value 
    
    **if** ( dropdownvalue === "Non" ){ 
        $w ( "#dropdown3" ). expand (); 
        console . log ( $w ( '#dropdown3' ). value ); 
    } **else** { 
        $w ( "#dropdown3" ). collapse (); 
    } 
})

```

---

<div class="post-metadata">

**Author:** ![feliperojas](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/feliperojas/32/10932_2.png) [@feliperojas](https://forum.wixstudio.com/u/feliperojas)\
**Post date:** [August 23, 2023, 10:11pm UTC](https://forum.wixstudio.com/t/dropdown-elements-not-showing/35410/5 "2023-08-23T22:11:38Z")

</div>

Happened the same to me. Thanks for sharing your solution!
