DHIS2 Tracker date and time, program stages

Hi Community, is there a way to restrict the DHIS2 date such that it is only the current date that is accepted in the form. Example, Date of data entry shouldn’t be in the past or future, but the current date.

Secondly, I want to close a program, its program stages and relationship if a tracked entity attribute option is ‘no’. Basically, I want to be able to complete the registration, but nothing further if e.g., graduated = ‘no’. Are these possible on the DHIS2 tracker?

Hi @Rae

I would suggest simply creating a program rule to do this automatically. In that case, the user would not need to capture the date at all as it would be captured automatically through the program rule.

Check out the documentation and this other Community post for some guidance:

There are many other community posts about program rules that can help too.

Hope that works for you!

Thanks for your response but it doesn’t exactly help my issue. I understand how program rules work but I don’t know how to do this to capture nothing but the current date and time of data entry.