# Values from the second field of the form - depending on the selected value of the first field?

**URL:** https://forum.djangoproject.com/t/values-from-the-second-field-of-the-form-depending-on-the-selected-value-of-the-first-field/18762
**Category:** Templates & Frontend
**Created:** [February 10, 2023, 3:31pm UTC](https://forum.djangoproject.com/t/values-from-the-second-field-of-the-form-depending-on-the-selected-value-of-the-first-field/18762 "2023-02-10T15:31:07Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![KenWhitesell](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/kenwhitesell/32/280_2.png) [@KenWhitesell](https://forum.djangoproject.com/u/KenWhitesell)
#### Post date: [February 10, 2023, 4:00pm UTC](https://forum.djangoproject.com/t/values-from-the-second-field-of-the-form-depending-on-the-selected-value-of-the-first-field/18762/2 "2023-02-10T16:00:53Z")

</div>

What you’re looking for is commonly referred to as “chained” or “cascade” select widgets.

There are many conversations in this forum about this topic. Two of the more recent that may be of value are:

- [Dependent Drop Down](https://forum.djangoproject.com/t/dependent-drop-down/16558)  
and
- [Forms with branching/filtering](https://forum.djangoproject.com/t/forms-with-branching-filtering/7386)

If you’re looking for a pre-packaged solution, [Select2](https://select2.org/) (and its corresponding Django package [Django-Select2](https://pypi.org/project/django-select2/)) are probably what are referenced most often here. (We’re starting to use HTMX in a new project for this - it’s another viable option.)

If you check out [djangopackages.org](http://djangopackages.org) and search for “select”, you’ll see some other options.

---

_[View the full topic](https://forum.djangoproject.com/t/values-from-the-second-field-of-the-form-depending-on-the-selected-value-of-the-first-field/18762)._
