Is it possible to implement conditions on the forms, lets you have a form where you ask a user for example 1. Do you have computers (answer:yes or no) when the user answers yes we should have a condition that automatically display another field called 2. number of available computers(here the user answers the number of computers) and this kind of form will be aggregate meaning we are going to use data entry.
N:B i understand that in programs we can be possible using program rule but my question is interms we used it as aggregate how can we implement it
It’s possible to use JavaScript using a custom dataset but to the best of my knowledge this practice is not recommended and might not be available in future versions.
We know that skip logic in aggregate data entry forms is a feature of interest for many users. We are working on expanding the customization options for standard forms, but do not currently have a time frame for when we will implement skip logic capabilities.
As @Gassim notes, it is possible currently in the classic data entry app to use custom forms for this, but custom JavaScript support will be removed in a future DHIS2 version, and therefore we would recommend not relying on custom JavaScript if possible.
You may want to consider using validation rules as an alternative here, for example, you could create a rule that checks that the number of computers is only greater than 0 if the user has responded that they have computers.
Please let us know if you have any more details on your use case and thank you for reaching out.