Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Multiple surveys - reference requestion

  • ylafont
  • ylafont's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 1 month ago #116602 by ylafont
I need to reference an answer from a previous survey and set the current survey answers to the same value. is this possible?
The topic has been locked.
  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 years 1 month ago #116632 by Mazi
Replied by Mazi on topic Multiple surveys - reference requestion
This isn't possible. For security reasons one can't refer to answers of a different survey or even a different data set at the same survey.

The only way to achieve this would be to code an Ajax call to query the database directly for that information. Additionally you need to "port" that answer into the current survey and mark the related option using JavaScript.

Best regards/Beste Grüße,
Dr. Marcel Minke
survey-consulting.com
offlinesurveys.com
Feel free to contact me by email for professional LimeSurvey support!
The topic has been locked.
  • ylafont
  • ylafont's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 1 month ago #116681 by ylafont
Replied by ylafont on topic Multiple surveys - reference requestion
Thank you Maxi - I am looking to avoid re-asking questions that have been answered in previous surveys.
or ask something like

"You entered/selected this previously, is this correct?"

Is there a preferred method, for this type of questions where the answer is in a previous survey?
The topic has been locked.
  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 years 1 month ago #116687 by Mazi
Replied by Mazi on topic Multiple surveys - reference requestion

ylafont wrote: Is there a preferred method, for this type of questions where the answer is in a previous survey?

As said, the only way to reference a previous answers from another survey is to custom code the requried DB query and embed the result at the current survey.

If there are only a dozen participants, you can also manually port the old answers into additional token attributes if you are using tokens and then refer to those values via placeholders.

Best regards/Beste Grüße,
Dr. Marcel Minke
survey-consulting.com
offlinesurveys.com
Feel free to contact me by email for professional LimeSurvey support!
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 years 1 month ago #116696 by holch
Replied by holch on topic Multiple surveys - reference requestion
Well, I don't think the problem would be the number of participants, but rather the number of questions you would like to include into this.

If it is only a few questions, you can export those questions and include them into the token table of the next survey.

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
The topic has been locked.
Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose