Check out the LimeSurvey source code on GitHub!

Pre filling answers from one survey to another

More
5 years 8 months ago #62508 by sgaucho
Hi,

I need to send a repeat survey with prefilled answers from a previously submitted survey (to validate whethe the previous answer is still valid).

The {INSERTANS:85378X15X255} tag permits me to fetch answer from a previous question within the same survey.

Is there any method to fill the answer fields from another survey?

Appreciate some suggestions!

tx,
sg

Please Log in to join the conversation.

More
5 years 8 months ago - 5 years 8 months ago #62509 by greg_d
In the current version Limesurvey get replacement values for INSERTANS placeholder from session variables, so it is not possible to get anything from database (take a look at insertansReplace($line) and retrieve_Answer($code, $phpdateformat=null) from common_funtions.php). PHP coding will be necessary.

You must also consider how are you going to determine 'previously submitted survey'.
Last Edit: 5 years 8 months ago by greg_d.

Please Log in to join the conversation.

More
5 years 8 months ago #62510 by sgaucho
Hmm..

Probably develop a PHP code to generate a copy of the previously submitted survey with the answers filled in and permit the user to validate the answers?

Please Log in to join the conversation.

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