Welcome to the LimeSurvey Community Forum

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

Using answer from one participant to influence questions for another

More
7 years 5 months ago #144967 by reuip
Hello everyone, I have a question.

I currently have a survey that looks something like this:

Q1: What is your new years resolution?
Q2 (hidden): Text or instructions
Q3: How close are you to reaching your resolution?

What I would like to do is:

- Send this to a first person who answers both questions
- Have their answer to Q1 (new years resolution) get piped into the text for Q2. Unhide Q2
- Hide Q1. This way, after the first person takes the survey, all others will see only the answer to Q2, and a chance to answer Q3

I was thinking maybe the best way is to use attributes attached to the users (e.g. hide/unhide Q1 & Q2 based on attributes). However, what is the best way to pipe the response to Q1 into the text of Q2?

Thanks for anyone's help!

Regards
Michael
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 5 months ago #144987 by tpartner
You can use Expression Manager to pipe answers into text-display questions within a given survey but there is no access to answers from other respondents.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
More
7 years 5 months ago - 7 years 5 months ago #144998 by reuip
Thank you, I did find this option in the expression manager.

Is it possible to have the answer update, for example, an attribute for other users or all users? Maybe as a workaround? I see that I can use attributes to influence question text, so thought this might be an option as well. Or, can I use one person's response to update the default answer that others see?

Thoughts?

Regards
Mike
Last edit: 7 years 5 months ago by reuip. Reason: additional clarity
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 5 months ago #145004 by tpartner
No, you cannot directly update attributes (for any token) from within the survey.

You may be able to code a remote file using the RemoteControl 2 API . Perhaps the set_participant_properties() method .

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose