How to prefill geopoint in enketo form through URL

Hi @ashish1807,

I have come up with the answer you have requested for. This could be helpful for a lot of users. Try following the instructions as outlined below.

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

Image 1

Reference xlsform: You could use this for ease

GPS Default.xlsx (9.3 KB)

Step 2: Deploy your survey form.

Step 3: Copy the link as outlined below:

image

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/b3kheU2b

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

?d[GPS]=29.65947736 86.31874018 130.69580078125 3.2900925

So your new link should be like:

https://ee.kobotoolbox.org/x/b3kheU2b?d[GPS]=29.65947736 86.31874018 130.69580078125 3.2900925

Step 6: Copy the link to a modern browser (like chrome etc.) and you should see the GPS being loaded automatically (lat, long, altitude, accuracy) with the one you have provided.

Have a great day!

2 Likes