Pre-filling using URL parameters does not work in ODK Web Forms

1. What is the issue? Please be detailed.

I want to pre-fill a question in a Web Form using URL parameters and the &d[/data/uuid]=foo XPath syntax.

This works perfectly in Enketo, using e.g. https://example.com/f/ABC?st=TOKEN&d[/data/uuid]=foo. If I switch to Web Forms in my self-hosted Central v2025.1, the field remains empty.

2. What steps can we take to reproduce this issue?

Create a simple form with a question of type text, named uuid, and try to pre-populate this field using the syntax mentioned above. Switch between Enketo and ODK Web Forms in the forms settings. I provide a minimal form example below.

3. What have you tried to fix the issue?

Read the question and answer by @LN here. @LN mentioned last year that ODK Web Forms will "likely" follow the same approach but I cannot find any further information on this and want to make sure this is on the roadmap.

Checked the feature matrix with XPath being 95% complete already. Checked the detailed project board / roadmap for Web Forms with no information on it. I might be using the wrong keywords because I am not a developer, though.

4. Upload any forms or screenshots you can share publicly below.

Example form:
pre-fill using url parameter.xlsx (469.3 KB)

1 Like

Hi @georg,

Thanks for trying Web Forms and sharing this feedback! Your form example is super helpful.

We haven’t yet added support for pre-filling fields using URL parameters with XPath syntax (e.g., &d[/data/uuid]=foo) in Web Forms. I’ve created a ticket to track this, and we’ll consider it for future updates under "Form Logic" in our feature matrix:

4 Likes