Enketo Toolkit: a browser extension to refresh dynamic data and rescue stuck drafts

Update (Nov 2026): v1.1.1 adds a bookmark version for phones and tablets. See the update in the replies below.

Hi everyone,

I built a small browser extension for Enketo web forms to deal with stuck drafts and stale dynamic data, and I’m sharing it in case it helps others.

Context

I manage a Kobo account with hundreds of forms shared with many users. We often run into these problems:

  • Saved drafts get stuck with errors like 401 or 409.
  • When a draft was stuck, the only fix we had was clearing cookies. That deleted the drafts for every form opened in that browser, not just the form with the problem.
  • Child forms don’t show the latest parent changes.

What the extension does

  • Refresh Parent Data: with dynamic data attachments, clears the cached parent data for the current form and reloads the page, so the form picks up the latest parent data.*
  • Saved Drafts: lists the drafts saved for the current form. You can rename or fix a draft, export it as an XML file, or delete it. This only touches the form you have open, so drafts on your other forms are left alone.
  • Restore from Exported XML: fills a newly opened form using a previously exported draft. Calculated fields are skipped by default, and you can list extra field names to skip.

*A new record in the parent form can take about 5 minutes before the child form can fetch it, according to the Kobo documentation.

Fixing a stuck draft

  1. Try Rename / Fix first. Open the form, click the extension icon, and use Rename / Fix on the stuck draft, then change the name. This usually clears the problem.
  2. If the draft is still stuck, use the export, delete and restore route:
    1. Export the stuck draft as an XML file.
    2. Delete that draft with the extension.
    3. Re-open the form, click the extension icon, and use Restore from Exported XML to load the file you exported. To skip any fields, type their names in the “Also skip fields named” box before choosing the XML file.

I tested the restore with repeat groups, and they came back correctly. File uploads and some special widgets may not restore fully.

Visuals


The extension popup on an open form: Refresh Parent Data, the saved drafts for this form with Rename/Fix, Save a copy and Delete, and the restoring from a saved copy.


Enketo’s own saved queue on the same form, showing the two drafts that the extension lists.

How to use it

  1. Open the Enketo form you want to work on.
  2. Click the extension icon.
  3. Choose an action: Refresh Parent Data, a draft’s Rename / Fix, Export or Delete, or Choose XML File… to restore an exported draft.

Install

It works on Chrome, Edge, Brave and Firefox, and I tested it on all four. It’s installed manually, not from a store.

  • Chrome, Edge, Brave: download the repo, turn on Developer mode on the extensions page, click Load unpacked, and select the chromium-extension folder.
  • Firefox: download firefox-extension/enketo-toolkit.xpi and drag it into a Firefox window.

The README has the full steps.

Links

The extension is free and publicly available on GitHub:

Please note

  • The extension only runs on the form page you have open.
  • It’s a personal project, offered as is, so please test it on a non-critical form first.

Community Feedback

I’d be glad to hear whether it works for you, and about any bugs or ideas. Any feedback, questions or suggestions are welcome.

2 Likes

Bravo @Isslam Thanks for sharing your knowledge with the community

1 Like

Update: v1.1.1 now works on phones and tablets

Many of our staff fill forms on Android, where extensions can’t be installed. The toolkit is now also available as a bookmark that opens a small panel on the form. Nothing to install, and it also works in desktop browsers.

Set it up (one-time setup)

Open this page on your phone and follow the steps. It has a Copy button and short instructions for Android and computers:

Use it

  1. Add the bookmark as explained in the link above
  2. Open the Enketo form.
  3. On Android, tap the address bar, type Enketo, and tap the Enketo Toolkit bookmark suggestion with the star icon. On a computer, click the bookmark.
  4. A panel lists the drafts saved for that form.

What the bookmark does

  • Rename/Fix: fixes a stuck draft (409 / “already exists”) and lets you rename it.
  • Save a copy: downloads the draft as an XML file, so the answers aren’t lost.
  • Delete: removes one draft from this form only.
  • Choose a saved draft: fills a new, empty copy of the form from a saved draft.

Refresh Parent Data is still only in the extension.

Also new in v1.1.1

  • A draft saved on a phone can be restored on a computer, and the other way round.
  • Works with non-Latin characters (tested with Arabic)
  • The bookmark updates itself. Extension users can update by following the README.

As before, please test on a non-critical form first. Feedback is welcome.