Hello DHIS2 Community,
How can I create entry from in section like in image below? Is it possible?
Hello @Adil,
Welcome to the community!
Please I would like to ask you if you are creating a dataset or a tracker program form? Either way in both cases you can use the ācustom formā; however, creating ācustom formsā will not sync into the Android app and if plain HTML is not used it wonāt print as PDF properly.
Hereās the reference to Creating Custom Forms: Custom Forms - Metadata - DHIS2 Documentation
Dear Gassim,
Thank you for reply. Iām creating a dataset, not tracker. I have many tables in this dataset and I would like divide them into sections. But some tables have appereance like in image above. And my question is can I make custom entry data form in section part?
Best regards,
Yes, thatās possible! Please see the instructions to create custom form in the reference I shared above.
To create a custom form:
- Open the Maintenance app and click Data set
- In the list, find the data set you want to add a custom form to
- Click the options menu and select Design data entry form
- In the editing area, create the custom form
- Double-click on a object in the left-hand list to insert it in the form
- If you already have the HTML code for your form, click Source and paste the code.
- Select a Form display style
- Click Save
Itās also possible to color the form cells like in the image you posted, see similar topic post: Color cells
Hi @Adil,
Were you able to create a custom section form? I also have many tables, parts of which I would like to create as custom section forms, but from the documentation on custom forms as suggested by @Gassim , it seems not possible to achieve this.
Thanks
Itās possible to create many tables and separate between them using HTML and CSS in the custom form, is that what you are trying to do?
Thanks!
@hernandezmachava, yes it is possible. In general it will be simple css/html created inside dƩsigner provided. Only the thing what you should do is place your data elements on that forms/tables etc. Moreover you can have a section for the js code.
Only the thing that such custom form cannot be rendered properly on Android.
Regards, Ulanbek