# Dropdown values populate dynamically

**URL:** <https://community.dhis2.org/t/dropdown-values-populate-dynamically/62935>\
**Category:** Implementation - Implémentation\
**Created:** [2 January 2025 14:14 UTC](https://community.dhis2.org/t/dropdown-values-populate-dynamically/62935 "2025-01-02T14:14:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ramavat](https://dhis2.b-cdn.net/letter_avatar_proxy/v4/letter/r/ee7513/32.png) [@ramavat](https://community.dhis2.org/u/ramavat)\
**Post date:** [2 January 2025 14:14 UTC](https://community.dhis2.org/t/dropdown-values-populate-dynamically/62935/1 "2025-01-02T14:14:43Z")

</div>

Can we populate the dropdown based on the value in another dropdown. For example, select province from the dropdown should populate all the districts for the selected province.

---

<div class="post-metadata">

**Author:** ![Gassim](https://dhis2.b-cdn.net/user_avatar/community.dhis2.org/gassim/32/35347_2.png) [@Gassim](https://community.dhis2.org/u/Gassim)\
**Post date:** [6 January 2025 09:27 UTC](https://community.dhis2.org/t/dropdown-values-populate-dynamically/62935/2 "2025-01-06T09:27:58Z")

</div>

Hi @ramavat

Sorry for the delay. There’s a similar question in another topic:

> [@Problem with program rule action](https://community.dhis2.org/t/problem-with-program-rule-action/49958/2):
>
> Hi @aitor_garrido Regarding your first question. Yes, it is very straight forward to assing a “Yes” to a Data Element as you can see here. [program\_rule\_yes] The example program rule (sorry for the rules not making really sense as I am reusing another program): Program Rules Variables: Expression: Program Rules: Please note that when using Program Rules and assigning a value to Data Element this becomes greyed out so it cannot be changed (unless the Program R…

I tested and it’s working. Please let me know if there’s any additional details you need.

Thanks!
