Program rules for hiding option group are not working in android app for tracker program

Dear team,

I have encountered an issue with program rules designed to hide option groups within a Tracker program. These rules function correctly in the DHIS2 web application but do not exhibit the same behavior in the Android Capture App. Specifically, I am utilizing DHIS2 version 2.36.12.1 and have replicated this behavior on play.dhis2.org with version 2.39.9. ​

The Android Capture App version in use is 3.1.1.1.​

I am reaching out to inquire if others have experienced similar challenges or if there are known workarounds to address this discrepancy.

Thank you for your assistance.

@marta android

regards,
Neeraj

1 Like

Dear @Neeraj_Gupta

Thanks for your message.

I had a quick look on our preconfigured program rules and saw the options were hidden. Could you please share some details of the configuration of the program rule?

Happy to speak with you since it will probably be easier to understand.

Thanks
Rohit

Dear Rohit,

Thank you for your reply.

We have created Option Groups and based on selection in previous attribute, we are hiding the Option groups(or we are showing only 1 Option group) of the next attribute.

This is functioning well in the web version but when we are trying it in android app, the program rule doesn’t work. It shows all the options in android app while in web it only shows the options of the particular option group.

Use Case: We are trying to load the Village list based on the selection of the District(Option set) and Province, so we have created the Option Groups of Villages and hiding them based on District selection.

I hope I could clarify you the issue, I will be happy to give you more details if needed.

Thanks,
Neeraj

Hi Neeraj

Thanks for the info. I understand your use case.
Would you mind sharing your expression please?

Regards
Rohit

The Expression I am using is:
A{Island} == ‘Ambae Island’

Please let me know if you need further information.

Thanks,
Neeraj

Hi @Neeraj_Gupta
Are you available to speak when its convenient for you? I have sent you a DM with my contact details. Thanks

Hello @Rohit
I have sent you invitation, please accept that to start communication.

Thanks @Neeraj. I have created a ticket for this.

1 Like