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
9 years 2 months 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
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
9 years 2 months 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
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
The topic has been locked.
  • ylafont
  • ylafont's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 2 months 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
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
9 years 2 months 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
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 2 months 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.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose