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:
Is there a configuration or setting that would make these error messages display the data element name instead of the UID?
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?
I see that you are able to reproduce the issue in 2.41.8, thanks for the video: Jira
May I ask if you’ve tried to create a ‘show warning on complete’ message that shows the user that the field doesn’t have a value or is this going to be a blocker in terms of the workflow?
Thanks!
Thanks @gregory! I see what you are saying… would you like to create another feature request with this note similar to the Jira ticket @Kenyuri created? Jira
Hi @Gassim
I just tried to create a related ticket, or to add a comment to Raphael’s ticket, but did not have the rights to do so.
I could create another ticket, but I believe this is the same issue appearing on different parts: Capture App (Single event completion, or bulk completion, and even android catpure App) where our users are displayed data Elements UIDS instead of names, which makes it very difficult for them to understand and solve the issues.
This is also the case int troubleshoot sync App, but this may be normal on this level?
Please find below 2 captures showing the error message when trying to complete an event with missing Data Elements from Events List view:
We have the exact same behaviour in the Android Capture app when trying to sync events with missing fields.
Besides, not sure if this is related, but this might help:
This program stage is configured with a validationStrategy “On update and insert”, and some fields were added to the stage , and made mandatory with Program Rules.
This may happen with events whcich were already present on the server (and thus could be saved with the missing fields) , and when trying to complete them from the list view or when trying to sync them with Android (e.g. without opening them).