How to prefill geopoint in enketo form through URL

Hi @ashish1807,

Would you mind trying it as follows:

Step 1: Design the survey tab of your xlsform as outlined below:

Image 1

Reference xlsform: You could use this for ease

Pre-fill with Enketo Link (2020 07 22).xlsx (9.5 KB)

Step 2: Deploy your survey form.

Step 3: Copy the link as outlined below:

Step 4: Paste it in a notepad/MS Word or any other software (you feel comfortable to edit with). You should see something like this:

https://ee.kobotoolbox.org/x/SHDBV1bT

Step 4: Customize the link by adding the following at the end of the link shared above (change it as required):

?d[lat]=11.110&?d[long]=12.120&?d[altitude]=90&?d[accuracy]=5

So your new link should be like:

https://ee.kobotoolbox.org/x/SHDBV1bT?d[lat]=11.110&?d[long]=12.120&?d[altitude]=90&?d[accuracy]=5

Step 5: Copy the link to a modern browser (like chrome etc.) and you should see the variables (lat, long, altitude, accuracy) filled out automatically.

Have a great day!

1 Like