Capture app shows Data Element UIDs instead of names in mandatory field errors set by program rules

Hello DHIS2 Community,

We are experiencing an issue with error messages in the Capture app related to program rule-enforced mandatory fields. We have program rules configured with the “Make Field Mandatory” action, which prevents users from completing an event or enrollment unless all mandatory fields have been filled in.

When users try to save or complete a form, they receive error messages like:

The problem is that these messages display UIDs instead of the actual data element names. Our end users at facility level have no access to the Maintenance app, so they cannot identify which field the UID refers to. This makes it impossible for them to act on the error and correct their data entry before completing the event or enrollment.

We would like to know:

  1. Is there a configuration or setting that would make these error messages display the data element name instead of the UID?

  2. Has this been addressed or is it planned for a future version?

For context, the “Make Field Mandatory” program rule action is supported in the Capture app and is expected to prevent users from continuing until the rule is no longer true. A similar improvement was made for the Android app (version 2.9), where the validation rule dialog was updated to display the Data Element instead of UID-based references. We would love to see the same behavior in the Capture web app.

@Kenyuri - completely agree about this. Really, it should mark the data element in the form as mandatory and show an error message on it. So not sure why it’s showing up as a message like that. Are the fields that are mandatory hidden?

Which DHIS2 version and Capture app version is this? Would you be able to reproduce it on play.dhis2.org?

Thanks,
Karoline
DHIS2 Product Manager

Some of the mandatory fields are hidden while others are not hidden.

DHIS2 Version: 2.41.6
Capture: 105.5.9

Hi @Karoline
Besides, I noticed yesterday we have the same “issue” when trying to bulk complete events from the capture app:


this would also help users in this screen.
Capture ap version 105.5.10 and DHIS2 2.41.6