Capture app – Enrollment form not rendering & Save button not working (DHIS2 2.41.6)

Hello everyone,

I am facing a blocking issue in the Capture app related to enrollment in a Tracker program (DHIS2 version 2.41.6).

Issue description

  • In the Tracker app:

    • The enrollment form displays correctly
    • All attributes are visible
    • Data entry and saving work without any issue
  • In the Capture app:

    • The default enrollment form does not render properly

    • Only one field appears: “Enrollment date”

    • None of the configured attributes are displayed

    • When using a custom form, it does display, but:

      • Clicking “Save” does nothing
      • No error message
      • No validation feedback
      • No network request triggered
      • The UI remains unresponsive

What has been tested

  • Removed all required attributes → issue persists
  • Reduced configuration to minimal setup → issue persists
  • Compared with another Tracker program (Methadone) → works perfectly in Capture
  • Same user, same instance

This strongly suggests a program-specific issue affecting Capture only

Key observation

  • The same program works perfectly in Tracker
  • But fails in Capture
  • Only the Enrollment date is rendered in Capture

Questions

  1. What could cause Capture to render only the Enrollment date and ignore all other attributes?

  2. Could this be due to:

    • metadata inconsistency?
    • program configuration incompatible with Capture?
  3. Are there known cases where:

    • form renders in Tracker
    • but not in Capture?
  4. How can we debug a silent save failure in Capture (no error, no request)?

Impact

This issue completely blocks enrollment and data entry in Capture for this program.

Any help or similar experience would be highly appreciated.

Thank you.

Can you make sure that the registration form in Maintenance does not have an empty custom form?
If it has it, can you delete it?

2 Likes

Hi Karoline,

Thank you for your suggestion.

I checked the registration (enrollment) form in Maintenance, and there is no empty custom form configured.

Also, just to clarify:

  • If a custom form were present, it would also be used in the Tracker (legacy app).
  • In my case, the form renders correctly in Tracker, including all attributes, and enrollment works without any issue.

However, in the Capture app:

  • Only the Enrollment date is displayed
  • None of the attributes appear
  • The Save button does not trigger any action

So it seems that the issue is specific to Capture behavior, not related to a custom form configuration.

Please let me know if you have any other ideas to investigate.

Thank you again for your support.

Hi @Karoline;

Thank you for your suggestion — you were absolutely right.

I initially checked the custom form and assumed it was empty, so I didn’t consider it as the source of the problem. However, after a closer inspection today, I realized that there was still minimal HTML content (e.g. “body p”) in the custom form.

Even though it appeared empty, the custom form was still active and therefore overriding the section-based form in Capture. As a result, none of the data elements were displayed except the event date.

After deleting the custom form completely, everything started working correctly.

Thanks again — your comment was key to identifying the issue.

Best regards,