Suspending a questionnaire, then performing some task
Problem
You want the respondent to be able to suspend the questionnaire and you want the questionnaire to perform some action after that request.
Solution
The following code suspends the questionnaire and sends an e-mail to the respondent.
Discussion
Sometimes, respondents want to stop filling out a questionnaire and resume later. This is easily achieved by re-using a link that was sent with an invitation to take part in the survey if access is password-protected (# Type enquete = 2). However, if access was open or if an access-code was provided upon entry, respondents are unlikely to have the information required to return.
In these circumstances, the Stop button can be displayed with a pound instruction like the following:
which activates the Stop button and instructs CallWeb to go directly to the INTERRUPT question once the button is clicked (clicking the Stop button also saves the data already provided on that page but does not validate them).
The interruption destination question can do anything. The following code shows how to request that an e-mail address be supplied and how to send a message containing a link back to the questionnaire — right where the interview left off.