Attribute

Hello,
I want to have Two attributes include “State” and “City”.
when I select a specific State it shows me cities of that State,
Is it possible in dhis2?
thanks

3 Likes

Hi Afshari,

Yes it is possible, by creating Two Option sets State and City.

Based on relation of each state and cities you create program rule for show and hide item or items in the city drop down.

Note: In and above 2.30, the Program rules are based on Code of option set.

4 Likes

Thanks a lot for your immediate answer,
I will check and write program rule.
i hope to succeed

3 Likes

Thank you for posting, I’ll be using this information as well!

2 Likes

Hello @lida_afshari, @Natalie_Tibbels, and @Markus
Were you able to get this to work?

I am trying to create a dependant list using drug regimens where if I select for example “Adult first line regimens” from a drop down list in a field called “Regimen Class”, the next field called “Regimens” should only show drug regimens in that class.
I am completely new to this and trying to read up on the documentation.
Your guidance and help would be most appreciated.

1 Like