Is it possible to create custom entry form in section?

Hello DHIS2 Community,
How can I create entry from in section like in image below? Is it possible?

Š‘ŠµŠ·Ń‹Š¼ŃŠ½Š½Ń‹Š¹

Hello @Adil,
Welcome to the community! :tada::tada:

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,

1 Like

Yes, thatā€™s possible! Please see the instructions to create custom form in the reference I shared above.

To create a custom form:

  1. Open the Maintenance app and click Data set
  2. In the list, find the data set you want to add a custom form to
  3. Click the options menu and select Design data entry form
  4. 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.
  1. Select a Form display style
  2. 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

1 Like

Hi @hernandezmachava,

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

1 Like