Conversation
* feat: support custom forms with plugins * chore: add placeholder custom-form plugin to project * add javascript files from core * use javascript files from core * chore: update external JS files * chore: original SA custom form * chore: improve the shim for the plguin (getting SA covid to work) * refactor: clean comments and lint issues * chore: support internal form CSS and proxy setHeaderDelayMessage to useAlert * refactor: rename folder name * refactor: organise files and cleanup comments * refactor: move external files to a common folder * fix: update scripts paths so that they work in production build * fix: omit plugin and plugin.js from pre-cache so that it works in production build * fix: ignore linting legacy jQuery/struts files to make it easier to compare with originals * test: fix failing tests
Contributor
|
🚀 Deployed on https://pr-485--dhis2-data-entry.netlify.app |
# [101.1.0-alpha.2](v101.1.0-alpha.1...v101.1.0-alpha.2) (2025-09-11) ### Bug Fixes * alpha release to apphub ([28c3fc1](28c3fc1))
# [101.1.0-alpha.3](v101.1.0-alpha.2...v101.1.0-alpha.3) (2025-09-11) ### Bug Fixes * fix publishing on pre-release branches ([17caaac](17caaac))
# [101.1.0-alpha.4](v101.1.0-alpha.3...v101.1.0-alpha.4) (2025-09-30) ### Features * add support for attribute option combos ([fb7a1cb](fb7a1cb))
# [101.1.0-alpha.5](v101.1.0-alpha.4...v101.1.0-alpha.5) (2025-10-09) ### Features * support viewing data item details ([97b11b3](97b11b3))
fix: update indicators to include denominators
# [101.1.0-alpha.6](v101.1.0-alpha.5...v101.1.0-alpha.6) (2025-10-15) ### Features * add support for option sets ([008c368](008c368)) * add support indicators ([8767049](8767049))
* feat(custom-forms): support offline mode * fix: prevent re-renders and highlight all synced fields once online fix(offline): highlight all synced fields when online fix(offline): prevent extra re-renders for plugin
# [101.1.0-alpha.7](v101.1.0-alpha.6...v101.1.0-alpha.7) (2025-11-12) ### Features * **custom-forms:** support offline mode ([#495](#495)) ([4ed158f](4ed158f))
# [101.1.0-alpha.8](v101.1.0-alpha.7...v101.1.0-alpha.8) (2025-11-26) ### Bug Fixes * pass legacy localised strings to plugin ([61f9984](61f9984)) * re-add dhis2.validation.js as it is still used in some helpers ([cce316b](cce316b)) * use native datepicker for DATE fields ([7d02d54](7d02d54)) ### Features * open details bar using cmd+enter ([72d055d](72d055d))
|
# [101.1.0-alpha.9](v101.1.0-alpha.8...v101.1.0-alpha.9) (2026-01-14) ### Bug Fixes * support min/max values validation ([34beffa](34beffa))
# [101.1.0-alpha.10](v101.1.0-alpha.9...v101.1.0-alpha.10) (2026-01-14) ### Bug Fixes * change alert shim to allow passing AlerBar options ([9e0a7ae](9e0a7ae)) ### Features * support files value types ([3d95a3e](3d95a3e))
# [101.1.0-alpha.11](v101.1.0-alpha.10...v101.1.0-alpha.11) (2026-01-26) ### Bug Fixes * rerun pipeline ([17ebe47](17ebe47)) * **DHIS2-20563:** use dataset ID instead of form ID to get the custom form ([a0c8ee7](a0c8ee7)) * **DHIS2-20563:** validate valueTypes on the client-side ([a37c5ec](a37c5ec)) * **DHIS2-20575:** show loader until form is ready to interact with ([8dca817](8dca817))
* fix(DHIS2-20567): show modern styles for html-only forms * refactor: add comment for htmlCode query Co-authored-by: Kai Vandivier <49666798+KaiVandivier@users.noreply.github.com> --------- Co-authored-by: Kai Vandivier <49666798+KaiVandivier@users.noreply.github.com>
# [101.1.0-alpha.12](v101.1.0-alpha.11...v101.1.0-alpha.12) (2026-02-04) ### Bug Fixes * **DHIS2-20567:** show modern styles for html-only forms ([#509](#509)) ([3b5e95a](3b5e95a))
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




implements https://dhis2.atlassian.net/browse/DHIS2-19900
This plugin adds support for legacy custom forms in the new data-entry app. It aims to make using these custom forms (with JavaScript code) as frictionless as possible so that the old forms can - ideally - work as they are without changes. The approach for this support is achieved by:
form.jsto work for v42+ maintaining - as much as possible - their existing interface so that the upgrade is seamless for existing consumers.#selectedDataSetor#selectedPeriodIdthat were used in the past for certain operations like getting current dataSet or period.ToDos
dhis2.de.currentOrganisationUnitIdand other properties available indhis2.deform.jsAPI calls that are deprecated (i.e. all the calls to.actionstruts routes)/src/main/webapp/dhis-web-commons/javascripts/commons.jsTesting
To test the custom form plugin, run Aggregate the Data Entry app from this branch as usual (
yarn install && yarn start), then navigate to any existing custom form.This PR supersedes this PoC: #346
Current state (5/09)
custom-form-2025-09-05.webm
supersedes #480