Recurring Form

Thanks for your great solution @nat. Note that if your goal is to just download a PDF of the filled in form, you could also automate it and send your client the PDF rather than a link. You could do something like the following (assuming you have Google Chrome and macOS — adjust accordingly):

/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome \
--headless --print-to-pdf=$HOME/Downloads/example_file.pdf \
--virtual-time-budget=25000 $ENKETO_URL

(EDIT: looks like you could use this tool to simplify the pdf creation)

Where $ENKETO_URL is from my previous message, i.e.:

ENKETO_URL=`curl -s "https://kf.kobotoolbox.org/api/v2/assets/$PARENT_UID/data/$ID/edit/?return_url=false&format=json" \
-H "Authorization: Token $TOKEN" | jq '.url'`

You may have to increase virtual-time-budget if you find that it’s printing blank forms or missing data since it takes time for it to download.

1 Like