Check out the LimeSurvey source code on GitHub!

URL parameters - how to launch a partially answered survey response?

More
3 years 10 months ago #94502 by hanksterr7
Hi

I would like to auto-launch a survey for a user, allowing them to resume a survey they had already started. Is this possible? I know how to pre-fill questions in the survey when I launch it for them via the url arguments (such as http://<svr>/index.php?r=survey/index/sid/762745/newtest/Y/lang/en&762745X6X222=abcd

What other options exist for parameters I can pass in the URL to control survey behavior, and hopefully auto-load a prior response?

Thansk

-- Hank

Please Log in to join the conversation.

More
3 years 10 months ago - 3 years 10 months ago #94505 by DenisChenu
Hello,

To have a complete prefilling system, best is to use token and "Enable token answer persistance".
Here you have 2 choice:
- Prefill answer (use default answer) with some attribute
- Start each survey and prefill answer in each survey (you can use vv import/export for this).

But you can use too prefilling answer, but it's more complicated because you need one paramtere for each question.

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
Last Edit: 3 years 10 months ago by DenisChenu.

Please Log in to join the conversation.

More
3 years 10 months ago #94541 by hanksterr7
Ok, I got the token approach working. I can open a url like
http://svr/index.php?r=survey/index/sid/698233/token/tzxkr6c4rrv7trh/newtest/Y

and it will re-open the survey with all the prior answers filled in. Cool! Thanks

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form