ramavat
(Hiral Ramavat)
2 January 2025 14:14
1
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.
1 Like
Gassim
(AL-Gassim Sharaf Addin)
6 January 2025 09:27
2
Hi @ramavat
Sorry for the delay. There’s a similar question in another topic:
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:
[image]
Expression:
[image]
Program Rules:
[image]
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!