Skip to content

Document ODK Web Forms and new way of getting offline-capable Enketo links #1944

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

lognaturel
Copy link
Member

@lognaturel lognaturel commented May 1, 2025

Adds a new "Trying ODK Web Forms" page. I'm open to alternative title suggestions. I wanted to make it intriguing and clear that it's experimental. I also wanted to avoid confusion with generic "web forms".

I originally had tried doing a page about generic "web forms" that combined information about Enketo and Web Forms. I got good feedback around that not being future-looking enough so I reworked it to be more focused.

See it at https://output.circle-artifacts.com/output/job/b30c0002-30c3-448f-82aa-98f5b84384d3/artifacts/0/docs/_build/dirhtml/web-forms-intro/index.html and https://output.circle-artifacts.com/output/job/dbef5880-2359-4960-b034-093dbc0d3439/artifacts/0/docs/_build/dirhtml/central-submissions/index.html

Screenshots are placeholders for now to show the general structure of the page, @alyblenkin will work on more beautiful ones!

Copy link
Collaborator

@latin-panda latin-panda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! It's clear, well-structured, and informative.

I left some ideas below, let me know what you think about them :)


By default, web forms in Central are powered by `Enketo <https://enketo.org/>`_, a powerful library that was initially developed outside the ODK project and that the ODK team has contributed to.

The ODK team is now developing `ODK Web Forms <https://github.com/getodk/web-forms?tab=readme-ov-file#odk-web-forms>`_ which will eventually replace Enketo in ODK Central. ODK Web Forms is designed to align with ODK Collect and provide a modern user experience. This page describes how to opt into trying ODK Web Forms and documents its functionality.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and provide a modern user experience

Later, when WF is more complete, we can explain what "modern" means, for example:

ODK Web Forms offers a streamlined interface with faster load times, responsive design for various devices, and improved accessibility compared to Enketo.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed!

* Entity creation or update
* References to form fields in translated labels and hints (this works for single-language forms)

You can change a form's setting between Enketo and Web Forms at any time. Any form links that users already have will continue to work and will reflect the setting on the server at the time that the user loads the form link.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider clarifying the implications of switching from enketo to odk wf

Switching to ODK Web Forms will not affect existing submissions, etc...

Image
~~~~~~~~

The :ref:`image question type <image-widget>` without appearance allows the user to capture an image. In Web Forms, if the user is on a mobile device, they can take a picture with their mobile camera. Devices like laptops that use a desktop browser will not show the capture button, even if they have a built-in camera.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think about adding the calendar?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a few notes about calendar and filed getodk/web-forms#393!

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image options

Choose image outline
Choose image highlight

Copy link

@alyblenkin alyblenkin May 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Calendar image we could potentially add before the changes requested getodk/web-forms#393

Calendar outline
Calendar highlight

@lognaturel
Copy link
Member Author

Thanks for the feedback, @latin-panda! Over to you for a couple of screenshots, @alyblenkin

.. warning::
ODK Web Forms is experimental and does not support all form functionality! Please test your form carefully.

Starting in Central v2025.1.0, you can opt individual forms into using `ODK Web Forms <https://github.com/getodk/web-forms?tab=readme-ov-file#odk-web-forms>`_, an experimental replacement for Enketo designed from the ground up to align with ODK Collect. ODK Web Forms is still early in its development. We recommend trying ODK Web Forms if:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we just say Starting in Central v2025.1?

.. warning::
ODK Web Forms is experimental and does not support all form functionality! Please test your form carefully.

Starting in Central v2025.1.0, you can opt individual forms into using `ODK Web Forms <https://github.com/getodk/web-forms?tab=readme-ov-file#odk-web-forms>`_, an experimental replacement for Enketo designed from the ground up to align with ODK Collect. ODK Web Forms is still early in its development. We recommend trying ODK Web Forms if:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The word experimental makes it feel very conceptual. Maybe that's what you're going for to create some resistance to fully adopting Web Forms? We could also say it's in beta?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair, I've changed it to "an alternative to Enketo"! We already say later that it's early in its development.


Starting in Central v2025.1.0, you can opt individual forms into using `ODK Web Forms <https://github.com/getodk/web-forms?tab=readme-ov-file#odk-web-forms>`_, an experimental replacement for Enketo designed from the ground up to align with ODK Collect. ODK Web Forms is still early in its development. We recommend trying ODK Web Forms if:

* You are curious about how web forms will evolve in Central.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • You plan to switch to ODK Web Forms


By default, web forms in Central are powered by `Enketo <https://enketo.org/>`_, a powerful library that was initially developed outside the ODK project and that the ODK team has contributed to.

The ODK team is now developing `ODK Web Forms <https://github.com/getodk/web-forms?tab=readme-ov-file#odk-web-forms>`_ which will eventually replace Enketo in ODK Central. ODK Web Forms is designed to align with ODK Collect and provide a modern user experience. This page describes how to opt into trying ODK Web Forms and documents its functionality.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed!

@@ -0,0 +1,70 @@
Trying ODK Web Forms

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eventually we can add a hero image here too.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ODK Web Forms Something like this but showing Web Forms on mobile

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feature highlight - horizontal

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Default geopoint

@lognaturel lognaturel marked this pull request as ready for review May 5, 2025 20:38
@lognaturel lognaturel requested a review from alyblenkin May 5, 2025 20:38
@lognaturel
Copy link
Member Author

With images!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants