** =======================================================================================
** Nfield Export v3.1
**
** Questionnaire:
**	- Survey number...: c57c1031-e7c2-4bb8-bda5-75ba5835a413
**	- Last changed....: 2018-09-17T08:13:48 UTC
** =======================================================================================

*TEMPLATE "NfieldChicago"

** =======================================================================================
** Setup
** =======================================================================================

*SAMPLEDATA RespondentKey, Name, Score, Email

*IF [RespondentKey = ""] *PUT RespondentKey [RAN(999999999)] 
*QUESTION 1510 *ALPHA 61L20 *DUMMY
Respondent Key
*COPY Q1510 "*? RespondentKey"


** =======================================================================================
** Question
** =======================================================================================

*UIRENDER "*NUMBER=Slider"

*QUESTION 10 *NUMBER 81L2 *MIN [1] *MAX [10]
On a score of 1 to 10 how will you rate on our service?
(Only scoring below or equal to five will trigger the email sending)

*UIRENDER "*NUMBER="

*PUT Score Q10

** =======================================================================================
** Demographic info
** =======================================================================================

*QUESTION 1300 *FORM *VAR "Personal Info"
Your personal information

1:Name *ALPHA 83L50
2:Email *ALPHA 133L100

*PUT Name [Q1300F1]
*PUT Email [Q1300F2]
*COPY Q1300F2 "" 

*TEXTVARS pair[8], ask[8]
*VARS result

*IF [Score > 5] *GOTO 3000000
*GETDATA result pair,ask "SendMail0927:email=*? Email;respondentkey=*? RespondentKey;score=*? Score;name=*? Name"


** =======================================================================================
*QUESTION 3000000 *DUMMY
** =======================================================================================

*END

** =======================================================================================
*QUESTION 3000010 *DUMMY **Screen out
** =======================================================================================

*ENDST 21


