Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:
  • Page:
  • 1
  • 2

TOPIC: 2 part survey - connected

2 part survey - connected 5 years 7 months ago #54737

  • phschwager
  • phschwager's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 8
  • Karma: 0
I searched the forums and found some related answers, but nothing that get's at what we are trying to do.

We would like to do a survey which has two parts(two separate surveys) and an individual's answers from part one can be connected the the same individual's answers in part two. Here is how I envision it working.

Individual registers for part one (needs to be public). They follow the link and take the survey. The confirmation e-mail sends them to a second part/survey which they complete. After we have collected enough responses we export the two tables and match the answers.

Any suggestions? I know this can be done using some identifying information (e-mail address etc.) but I would prefer that the survey be anonymous and if a user chooses to complete the second survey just a few minutes after the first one, that is up to them. But they can not be completed as one complete survey.

Looking through the forum Limesurvey can do do a lot!

Thanks in advance for any assistance you can provide.
The administrator has disabled public write access.

2 part survey - connected 5 years 7 months ago #54740

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5097
  • Thank you received: 756
  • Karma: 227
So you need to connect the results from the first survey with the results of the second survey right?

Why not passing on the ID of each respondent? Then you have the ID of the first survey, you pass it on via URL to the second survey and write it into a hidden text question (there should be examples in the workaround section and the forum for how to do that).

Otherwise I would need some more information, to get a better idea of what you try to achieve and what you can do / not do.
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.

2 part survey - connected 5 years 7 months ago #54742

  • phschwager
  • phschwager's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 8
  • Karma: 0
Thanks for such a quick response!

That has possibilities.

Here's a bit more information on what I am attempting to do. Respondents go to a URL that will randomly send them to 1 of 4 surveys about hypothetical potential employees. Let's call them M+, M-, F+, F-. They evaluate the fit of the individual based on information we provide in the survey. That's the easy part. Now after the first survey we want to provide additional information to see how it changes their perception of the employee. So those who answered for and M will be sent to another randomizer that gives them either M+ or M- and those sent to F would get F+ or F-.

So in the end there are 8 possible pairs:
F+ -> F+
F+ -> F-
F- -> F+
F- -> F-
M+ -> M+
M+ -> M-
M- -> M+
M- -> M-

I could create 8 separate surveys if needed and then randomize the 8 at the start. That could be a plus if I could send e-mail reminders. The key is the two parts need to be answered at separate times and I need to be able to connect the first answers to the second.

Thanks again!
The administrator has disabled public write access.

2 part survey - connected 5 years 7 months ago #54743

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5097
  • Thank you received: 756
  • Karma: 227
Well, with this information I am sure we can work. Sounds doable to me, but let me have a further look into this. Maybe someone else has already done something similar.
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.

2 part survey - connected 5 years 7 months ago #54783

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6214
  • Thank you received: 1376
  • Karma: 539
You can add the record ID to the end URL using {SAVEDID} and then pass it into a question in the second survey - http://docs.limesurvey.org/tiki-index.php?page=Creating+a+new+survey&highlight=SAVEDID}#Presentation_amp_Navigation
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last Edit: 5 years 7 months ago by tpartner.
The administrator has disabled public write access.
The following user(s) said Thank You: phschwager

2 part survey - connected 5 years 7 months ago #54784

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5984
  • Thank you received: 368
  • Karma: 260
I recommend to create 8 versions so you don't have to take care of the M-> M+/- and F -> F+/- forwarding.

What about using the "token based answer persistence" (see survey settings) and having a hidden question at the beginning which is populated by URL? Part I and II depend on the value of the hidden question. At first start, the hidden question is empty and thereofre only the first question set is shown. The user then submits the first part of the survey.
You then send a reminder to fuill out the second part. At the reminder URL, pass an additional parameter like ...?12345X22X333=part2 so the question gets populated. Then the conditions will take care of the rest and only the second part of the survey is shown because of a condition like "IF Q x = 'part2' show questions 20-40".

You then have all data in one data set.

I hope you can understand what I try to describe :-)

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

2 part survey - connected 5 years 7 months ago #54786

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6214
  • Thank you received: 1376
  • Karma: 539
Again Mazi wins!
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last Edit: 5 years 7 months ago by tpartner.
The administrator has disabled public write access.

2 part survey - connected 5 years 7 months ago #54806

  • phschwager
  • phschwager's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 8
  • Karma: 0
Thanks Mazi,

I think I get exactly what you are proposing. Basically it's 1 survey with some conditional questions. If you enter and the answer the first question is "no" (have you completed the first part of the survey) it presents the first part of the survey. Then when you return the answer is "yes" so it presents the second part of the survey.

Now to see if I can make it happen. I've done the conditional questions before. Now can I figure out how to create the link that is sent and send the e-mails...should be fun :)
The administrator has disabled public write access.

2 part survey - connected 5 years 7 months ago #54842

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5984
  • Thank you received: 368
  • Karma: 260
tpartner wrote:
Again Mazi wins!
Some you win, some you lose.

You always beat me at the JS questions :lol:

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.
The following user(s) said Thank You: phschwager

2 part survey - connected 5 years 5 months ago #57928

  • phschwager
  • phschwager's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 8
  • Karma: 0
Finally had a few minutes to work on this again. I tried the basic idea, but I must be missing something.

To test it I created a 3 groups with 1 question each. In theory if I answer "yes" to the first question I go to question 3, if I answer "no" I go to question 2.

But after answering the first part I follow the link again and it says my token is invalid....which makes sense because I just completed the survey. I get this message:

"This is a controlled survey. You need a valid token to participate."

So, what am I missing? I can provide provide a link to my example if that would help. My thought is if I can make it work with a question I can see then I can make it work with the hidden one.
The administrator has disabled public write access.

2 part survey - connected 5 years 5 months ago #57963

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5097
  • Thank you received: 756
  • Karma: 227
If you use a survey with tokens then each token can only be used once, so you can't do the same survey again. You either have to provide different tokens or you have to make a survey without tokens.
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.
The following user(s) said Thank You: phschwager

2 part survey - connected 5 years 5 months ago #57966

  • phschwager
  • phschwager's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 8
  • Karma: 0
Thanks, I think I figured out a way to make it work with 2 surveys. The first one uses tokens. Then in the Thank You for completing the first part e-mail I send them a link to the second part. The second part passes the token as a question answer so now I can tie the two parts together. It worked in a small version, now I just need to make the bigger surveys :-)

Here is the link where I found how to insert the variable. Just had to call the token variable.

docs.limesurvey.org/Workarounds%3A+Surve...using_the_survey_URL
The administrator has disabled public write access.

2 part survey - connected 3 years 4 months ago #94820

  • Lila86
  • Lila86's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 6
  • Karma: 0
Dear all,
basically, I have a very similar question as phschwager.
I want to measure the responses of the participants twice but need their responses to appear in one dataset so that their answers are connected.

My procedure looks like this:
I will e-mail the survey URL to selected participants - without using tokens. They finish the first part. After two or seven days, I will send them a reminder with the URL to the second part.
A lot of participants would be filling in the first and second part simultaneously. (Is the solution offered to phschwager then still possible?)

I have already tried to follow the suggested steps in this forum post, but it does not work properly and I do not know where the mistake lies.
- I have created 1 survey intented to include the two parts.(Survey ID=89882)
- I have created a Group=hidden question (ID=1424) with 1 MCQuestion=Measurementmoment with 1 answeroption = "part2" (ID=25466).
- Then I created a lot of questions for part one. With no conditions.
- Then I created conditions for all the questions that should only be seen in the second part.
I could either create a condition for the group (parts) or the MCQ answeroption (marked/not marked). So i defined two conditions to be sure.
1. Show Qx if Measurementmoment=part2
2. Show Qx if Measurementmoment:SQ001=marked.
In the end the Condition looks the same: Relevance: ((Measurementmoment_SQ001.NAOK == "Y") and (Measurementmoment_SQ001.NAOK == "Y"))
- Then I adapted the reminder URL as suggested by Mazi.
The first URL link send to participants ends like this: ?sid=89882&lang=nl
Accordingly, I thought the second URL should end like this: ?sid=89882&gid=1424&qid=25466=part2
I tried several versions of adding =part2 to the URL, but none works. Additionally, I get the message "this survey does not yet contain any questions".

Apparently, I must have made a mistake. But where? Can you help me?
Is it the URL?
Is it the HiddenQuestion? (Should i have chosen "Equation" as questiontype? If yes, what would the question field read?)
Is it the Condition?
Or is it a combination of all three?

Many thanks for your response and help!


PS: I am using lime-survey 1.92.
The administrator has disabled public write access.

2 part survey - connected 3 years 4 months ago #94821

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5984
  • Thank you received: 368
  • Karma: 260
1. Can you attach your survey for testing?

2. The URL to the second part is wrong, it has to look like this (couldn't test yet):
?sid=89882&lang=nl&89882X1424X25466_SQ001=Y

Maybe this URL work, too:
?sid=89882&lang=nl&Measurementmoment_SQ001=Y

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

2 part survey - connected 3 years 4 months ago #94825

  • Lila86
  • Lila86's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 6
  • Karma: 0
Many thanks for such a quick response.

1. surveys-igs.utwente.nl/index.php?sid=89882&lang=nl (this would be the initial link)

I tried using the following URL, but it justs starts with the first question of the first part.
surveys-igs.utwente.nl/index.php?sid=898...rementmoment_SQ001=Y

Addtionally, I set the conditions for the first part of the survey only to show if: Relevance: ((Measurementmoment_SQ001.NAOK != "Y"))
But this did not work either.
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: ITEd
Time to create page: 0.720 seconds
Imprint                   Data Protection Statement                  Revocation information and revocation form