Mandatory Data Elements Not Indicated in Data Entry Form

Hi All,

I have configured certain data elements as compulsory (mandatory) in the dataset. However, for some reason, the mandatory setting does not appear to have any visible effect on the data entry form.

When users attempt to save the form, the application only displays an error message stating that compulsory data elements are required, but it does not indicate which specific fields are mandatory.

In the previous version of the Data Entry application, mandatory data elements were clearly marked with a red asterisk, making them easy to identify. In the current version, this visual indicator is no longer displayed, and users only receive the validation message after attempting to save the form.

Is this a known issue with the current version of the Data Entry application, or is there any configuration required to restore the mandatory field indicator?

Thank you.

Hi @ALI_HASSAN_Bouk

Would you please check that you are using the latest version of the Data Entry app? (You can update the app by going to the App Management app).

After updating the app, could you check again using your browser’s Guest mode.

If you’re still seeing the issue, could you please try to reproduce this on any of the play.dhis2.org instances (using the latest version of the Data Entry app)? If you can reproduce, please share the steps to reproduce.

Thank you!

Dear Gassim,

I have tested the latest version of the Data Entry Form, but it is still not displaying the asterisk (*) for mandatory data elements. I have already shared a screenshot of the form with you.

On the other hand, the same configuration works correctly on play.dhis2.org, where the asterisk (*) is displayed for compulsory data elements.

The screenshots are attached for your reference. Kindly review the issue and let me know if any additional information is required.

Thank you.

Hi
Thanks for testing and for the follow-up.

The reason why this is helpful to know means that the issue is not a specific bug but that it’s specific to either your form or to the instance.

When you tried to reproduce it on play, did you use the same exact form or the default form. Is your dataset using a custom html form? If it’s a custom html form, this might be the issue.

Hi @ALI_HASSAN_Bouk

Yes, thanks! I have tested this as well:

The asterisk appears automatically. The reason why it’s not being displayed in your form might be because of the custom form’s HTML/CSS. Could you share that so I can test it on play?

Thanks!