# Dropdown open content automatically

**URL:** <https://forum.inductiveautomation.com/t/dropdown-open-content-automatically/63903>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [September 8, 2022, 8:24pm UTC](https://forum.inductiveautomation.com/t/dropdown-open-content-automatically/63903 "2022-09-08T20:24:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sheko29](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/sheko29/32/25082_2.png) [@Sheko29](https://forum.inductiveautomation.com/u/Sheko29)\
**Post date:** [September 8, 2022, 8:24pm UTC](https://forum.inductiveautomation.com/t/dropdown-open-content-automatically/63903/1 "2022-09-08T20:24:51Z")

</div>

Hello, I wanted to know if there is some way to open a dropdown content automatically with an event, or with a CSS property…

I found that there is a “display” property for dropdown-content on CSS, but I really don’t know how to use it with styles on ignition…

I found a [post](https://forum.inductiveautomation.com/t/dropdown-height/48271/2) where mentioned a way to modify the dropdown-content max-height, but I don’t know how to do it for display property… also is there a guide to understand it?

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [September 9, 2022, 6:34am UTC](https://forum.inductiveautomation.com/t/dropdown-open-content-automatically/63903/2 "2022-09-09T06:34:33Z")

</div>

Css wont do anything to help you with that.

Maybe try setting it in focus. No idea if that will be enough, if its not then i dont think there is a way.

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [September 9, 2022, 8:32am UTC](https://forum.inductiveautomation.com/t/dropdown-open-content-automatically/63903/3 "2022-09-09T08:32:10Z")

</div>

@victordcq I just tried your suggestion off of a button, and it worked perfectly; the dropdown opened right up.

Here is the code I used:  
`	self.getChild("Dropdown").focus()`

---

<div class="post-metadata">

**Author:** ![chrisl](https://avatars.discourse-cdn.com/v4/letter/c/58f4c7/32.png) [@chrisl](https://forum.inductiveautomation.com/u/chrisl)\
**Post date:** [August 15, 2023, 6:22am UTC](https://forum.inductiveautomation.com/t/dropdown-open-content-automatically/63903/4 "2023-08-15T06:22:43Z")

</div>

Does this method does not work in v8.1.26 anymore? [Focus Event not working](https://forum.inductiveautomation.com/t/focus-event-not-working/77845)
