Open ifoche opened 5 years ago
dataSet.dataEntryForm
program.dataEntryForm
programStage.dataEntryForm
interface DataEntryForm {
id: string;
name: string;
htmlCode: string;
style: "NORMAL" | "COMFORTABLE" | "COMPACT" | "NONE";
}
dataEntryForm.htmlCode
may include:
<script>...</script>
)<style>...</style>
)Official documentation:
https://docs.dhis2.org/master/en/user/html/dhis2_user_manual_en_full.html#manage_customform
The most relevant info:
dhis2.de.event.formLoaded
, dhis2.de.event.dataValuesLoaded
,...)id="<dataelementid>-<optioncomboid>-val"
dhis2.de.api.xyz
), check the documentation for more info.There are two main ways of using custom forms:
Javascript code that loads the required metadata on-the-fly and builds the HTML view from it.
PROS:
CONS:
Static pre-generated HTML code.
PROS:
CONS:
@tokland @matiasgarcia91 if you could please here document a bit what we talked last week about which limitations we have in the custom forms, that would be great. Nothing very extensive but just to record here the result of our conversation in this regard.