How to respond to survey closure events

Overview:

There are several cases for an interview to be closed:

1. When the interview is cancelled.

2. When the interview is stopped.

3. When the interview is completed.

4. When the interview is filtered.

SurveyToGo provides the possibility to automatically perform different actions through the script code in each one of these closure cases, if needed.

The way to do so is using several callback functions that can be added to the survey's Advanced Scripts, and add the needed code inside these functions blocks. Each functions is automatically called when the respective action (cancel, stop, complete or filter) occurs. 

So for example, if I have a certain question in my script (let's say question index 5), and I want answer index 1 to be automatically set in case the survey is being filtered, I can write this code in the Advanced Scripts:

onFilter.jpg

Perform actions when an interview is cancelled:

An interview can be cancelled due to a code in the script (jump rule, library function), or when the interview is stopped and not saved. In both cases, the callback function "OnCancel()" is called.

 

Perform actions when an interview is stopped and saved:

When an interview is stopped and saved by the surveyor, the callback function "OnSave()" is called.

 

Perform actions when an interview is completed:

When an interview is fully completed, it is in "Submit" status, and so the callback function "OnSubmit()" is called.

 

Perform actions when an interview is filtered:

An interview can be filtered due to a rule/code in the script. In this case, the callback function "OnFilter()" is called.

  

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.