Hi,
I went through your instructions in here (
https://www.soscisurvey.de/help/doku.php/en:survey:opt-in-live, request e-mail address at the end of the first questionnaire) and:
1. created 3 mailing lists (1 for the first wave, 2 for the following reminders, with ids 1, 2 and 3), where I included the questionnaire url.
2. created an opt-in question where respondents can leave their e-mail addresses and placed it at the end of wave1 in my questionnaire.
3. created an (in-between waves) page where I included php code following the example you provide on the aforementioned link under the title "PHP Code on Time 1". I wrote 60 seconds, 120 seconds, and 180 seconds for the reminders to check whether I would receive an e-mail, see:
// Time which the page interruption was first accessed in stored in the $timepart1 variable.
// isset() und registerVariable() prevent this time being changed when the page is accessed again (e.g. if the page is refreshed) and/or emails being duplicated.
if (!isset($timepart1)) {
// store time
$timepart1 = time();
registerVariable($timepart1);
// Send invitation with mailing ID 1 for the second period of measurement after 7 days
// Time interval always given in seconds 10 x 24 x 3600 seconds = 10 days
mailResume(false, 1, 60);
// Send first reminder email with mailing ID 2 after 12 days
// (i.e. two days after the first invitation to the second period of measurement)
mailResume(false, 2, 120);
// Send second reminder email with mailing ID 3 after 11 days
// (i.e. four days after the first invitation)
mailResume(false, 3, 180);
}
// Check how much time has passed since the page was first accessed
if ((time() - $timepart1) < 60) {
// Display page interruption if this is less than 10 days,
// so participants cannot see the questions in the second period of measurement before this time has passed.
option('resume', true); // No indication that the interview is being resumed.
option('nextbutton', false); // Hide Next button (Interview interrupted)
text('end1'); // Maybe display a farewell indicating the end of the first part of the interview.
} else {
// If the participant returns after 7 days, making the current time minus the new time variable
// more than 10 days, then the survey will be resumed on the next page.
goToPage('next');
}
4. I called the last page (farewell) of wave 1 "end1" (ID), after which I placed the interruption page, and then the salutation page of wave2.
After running the first part of the survey (wave 1), the following message errors show up:
Questionnaire Error (page 43)
This interview has not been started in context of a mailing. Therefore, mailResume() cannot identify the appropriate recipient.
Questionnaire Error (page 43)
This interview has not been started in context of a mailing. Therefore, mailResume() cannot identify the appropriate recipient.
Questionnaire Error (page 43)
This interview has not been started in context of a mailing. Therefore, mailResume() cannot identify the appropriate recipient.
Questionnaire Error (page 43)
There is no text with the ID end1 in this survey project.
What is it exactly that I am doing wrong? and what does the command "text" stand for? Thanks!!