Android Capture: HIDEFIELD ignored when the field also has a hide/show option rule

Hi all,

In Android Capture 3.5.0, a field is not hidden when it is the target of both:

  • Rule A (priority 1): HIDEOPTION, HIDEOPTIONGROUP or SHOWOPTIONGROUP
  • Rule B (priority 2): HIDEFIELD

The field stays visible, and changing the rule priorities has no effect. This happens with all three option action types, for both single-select and multi-select fields:

Kapture 2026-10-28 at 23.32.23

Web Capture hides the field correctly. A control field that only has HIDEFIELD is hidden as expected on Android. I’ve reported this in JIRA with minimal metadata to reproduce: Jira

Has anyone else run into this, or found a workaround?

Hi @malekpour

Thank you for the neatly written post (and linked jira ticket)! The @dhis2-android team has looked at this and the fix for this issue has been merged to release 3.5.1: fix: [ANDROAPP-7937] Keep HIDEFIELD and other rule effects on fields with option rule actions by Balcan · Pull Request #5297 · dhis2/dhis2-android-capture-app · GitHub (cc: @Pablo).

If you notice anything while testing, please feel free to reply here with your feedback!

Thanks!