Hey SoSci community,
we want to conduct a two-part study but are using SoSci Survey for the first time. We are struggling with the part that interrupts the last two survey parts (we combined them into one part), thus having:
1) a first set of questions with an opt-in questions and
2) a combined part consisting of the interrupter and the second set of questions.
Participants will be recruited via a link posted on social media platforms, etc. For the second part of the study they will then invited for the second part of the study via e-mail. We want the e-mail to be sent 24 to the participant's mail account after the first part of the study. The interrupting part looks like this:
// Check how much time has elapsed since the start of the survey
// If this is less than 24 hours (24 3600 seconds), the questionnaire will be paused
if (caseTime('begin') < 24 3600) {
text('end1'); // displayed at the end of the first part
option('resume', true); // prevent indication to resume questionnaire
option('nextbutton', false); // hide the Next button (pause questionnaire)
// Send ID 3 mailing tomorrow at the same time (i.e. in exactly 24 hours)
mailResume(false, 3, 24 * 3600);
} else {
// Did the participant return after 24 hours? If so, continue questionnaire
goToPage('next');
}
When running through the survey parts we get the following errors on the page with the interruptor code:
Questionnaire Error (page 6)
There is no text with the ID end1 in this survey project.
Questionnaire Error (page 6)
A mailing with ID 3, as specified in mailResume(), was not found. Please create a new mailing and specify it's ID.
We are not sure how to resolve this issue. We appreciate any kind of help, thanks a lot!