# Creating dropdown with multiple options in loop

**URL:** <https://community.plotly.com/t/creating-dropdown-with-multiple-options-in-loop/43985>\
**Category:** 📊 Plotly Python\
**Created:** [August 19, 2020, 6:35pm UTC](https://community.plotly.com/t/creating-dropdown-with-multiple-options-in-loop/43985 "2020-08-19T18:35:53Z")\
**Posts on this page:** 1\
**Showing post:** 22

<div class="post-metadata">

**Author:** ![empet](https://avatars.discourse-cdn.com/v4/letter/e/977dab/32.png) [@empet](https://community.plotly.com/u/empet)\
**Post date:** [September 3, 2020, 6:31pm UTC](https://community.plotly.com/t/creating-dropdown-with-multiple-options-in-loop/43985/22 "2020-09-03T18:31:41Z")

</div>

@LOVESN

I haven’t understood yet, because it’s not clear how is defined your fig.data, i.e. how many traces is contains.

Eventually take a look at this answer: [Advanced Dropdown Menus with Plotly](https://community.plotly.com/t/advanced-dropdown-menus-with-plotly/40922/2) if you want to selectively reset or ignore certain properties when restyling. Besides `'undefined'` there is the option `'null'`. `null` resets a property to the default one, while`undefined`` applies no change to the current state.

\*In the above answer replace “two each” by “To each” 🙂

---

_[View the full topic](https://community.plotly.com/t/creating-dropdown-with-multiple-options-in-loop/43985)._
