Survey
177
en
gid
sid
group_name
group_order
description
language
randomization_group
grelevance
1
12947
G1
0
<i>self.suffix</i> is internally expanded to a comma-separated list of all variable names for the current question. Thus, it is useful for functions that take a variable number of arguments, like sum(), count(), min(), max(), and implode().<br/> <i>that.suffix</i> is also expanded.
en
qid
parent_qid
sid
gid
type
title
question
preg
help
other
mandatory
question_order
language
scale_id
same_default
relevance
1
0
12947
1
:

# q1

Enter some numbers
count = {count(self.NAOK)}<br/> sum = {sum(self.NAOK)}<br/> min = {min(self.NAOK)}<br/> max = {max(self.NAOK)}<br/> list = {list(self.NAOK)}<br/> stddev = {stddev(self.NAOK)}<br/> mean = {if(count(self.NAOK)>0,sum(self.NAOK) / count(self.NAOK),'')}
N
N
0
en
0
0
1
2
0
12947
1
X

# q2

<p> Here is what you entered for question 1, along with the row, column and grand totals.</p> <table border="1" cellpadding="1" cellspacing="1" style="width: 500px;"> <thead> <tr> <th scope="row"> </th> <th scope="col"> A</th> <th scope="col"> B</th> <th scope="col"> C</th> <th scope="col"> Total</th> </tr> </thead> <tbody> <tr> <th scope="row"> 1</th> <td> {q1_1_A}</td> <td> {q1_1_B}</td> <td> {q1_1_C}</td> <td> <span style="background-color:#d3d3d3;">{sum(that.q1.sq_1)}</span></td> </tr> <tr> <th scope="row"> 2</th> <td> {q1_2_A}</td> <td> {q1_2_B}</td> <td> {q1_2_C}</td> <td> <span style="background-color:#d3d3d3;">{sum(that.q1.sq_2)}</span></td> </tr> <tr> <th scope="row"> 3</th> <td> {q1_3_A}</td> <td> {q1_3_B}</td> <td> {q1_3_C}</td> <td> <span style="background-color:#d3d3d3;">{sum(that.q1.sq_3)}</span></td> </tr> <tr> <th scope="row"> Total</th> <td> <span style="background-color:#d3d3d3;">{sum(that.q1.sq_A)}</span></td> <td> <span style="background-color:#d3d3d3;">{sum(that.q1.sq_B)}</span></td> <td> <span style="background-color:#d3d3d3;">{sum(that.q1.sq_C)}</span></td> <td> <span style="background-color:#d3d3d3;">{sum(that.q1)}</span></td> </tr> </tbody> </table> <p> </p>
<p> This is only shown if you answered q1 (e.g. relevance = <span style="background-color:#d3d3d3;">{ count(that.q1)>0 }</span>)</p> <p> Note that you can use multiple sub-selectors on <em>self</em> and <em>that</em>. You can also use the <em>nosq</em> selector to select all columns or rows that do not match the desired pattern.</p> <table border="1" cellpadding="1" cellspacing="1" style="width: 500px;"> <thead> <tr> <th scope="col"> Goal</th> <th scope="col"> Syntax</th> <th scope="col"> Result</th> </tr> </thead> <tbody> <tr> <td> Sum of odd columns</td> <td> { sum(that.q1.sq_1.sq_3) }</td> <td> {sum(that.q1.sq_1.sq_3)}</td> </tr> <tr> <td> # answered in odd rows</td> <td> { count(that.q1.nosq_B) }</td> <td> {count(that.q1.nosq_B)}</td> </tr> <tr> <td> Max of values in row 2 and column B</td> <td> { max(that.q1.sq_2.sq_B) }</td> <td> {max(that.q1.sq_2.sq_B)}</td> </tr> </tbody> </table> <p> </p>
N
N
7
en
0
0
count(that.q1.NAOK) > 0
3
0
12947
1
P

# q3

Multiple choice:<br/> how many checked = {count(self.nocomments)}<br/> comments = {list(self.comments)}<br/>
Y
N
8
en
0
0
1
qid
parent_qid
sid
gid
type
title
question
preg
help
other
mandatory
question_order
language
scale_id
same_default
relevance
4
1
12947
1
T

# 1

1st sub-question
N
N
1
en
0
0
5
1
12947
1
T

# 2

2nd sub-question
N
N
3
en
0
0
6
1
12947
1
T

# 3

3rd sub-question
N
N
5
en
0
0
7
1
12947
1
T

# A

A
N
N
2
en
1
0
8
1
12947
1
T

# B

B
N
N
4
en
1
0
9
1
12947
1
T

# C

C
N
N
6
en
1
0
10
3
12947
1
T

# 1

1st sub-question
N
N
1
en
0
0
11
3
12947
1
T

# 2

2nd sub-question
N
N
2
en
0
0
12
3
12947
1
T

# 3

3rd sub-question
N
N
3
en
0
0
13
3
12947
1
T

# 4

4th sub-question
N
N
4
en
0
0
14
3
12947
1
T

# 5

5th sub-question
N
N
5
en
0
0
qid
attribute
value
language
1
answer_width
1
array_filter
1
array_filter_exclude
1
array_filter_style
0
1
em_validation_q
count(self.NAOK)>=3
1
em_validation_q_tip
Please answer at least 3 questions
1
em_validation_sq
1
em_validation_sq_tip
1
exclude_all_others
1
hidden
0
1
hide_tip
0
1
input_boxes
1
1
max_answers
1
maximum_chars
1
min_answers
1
multiflexible_checkbox
0
1
multiflexible_max
1
multiflexible_min
1
multiflexible_step
1
page_break
0
1
public_statistics
0
1
random_group
1
random_order
0
1
reverse
0
1
scale_export
0
2
hidden
0
2
hide_tip
0
2
page_break
0
2
random_group
2
time_limit
2
time_limit_action
1
2
time_limit_countdown_message
en
2
time_limit_disable_next
0
2
time_limit_disable_prev
0
2
time_limit_message
en
2
time_limit_message_delay
2
time_limit_message_style
2
time_limit_timer_style
2
time_limit_warning
2
time_limit_warning_2
2
time_limit_warning_2_display_time
2
time_limit_warning_2_message
en
2
time_limit_warning_2_style
2
time_limit_warning_display_time
2
time_limit_warning_message
en
2
time_limit_warning_style
3
array_filter
3
array_filter_exclude
3
array_filter_style
0
3
assessment_value
1
3
exclude_all_others
3
exclude_all_others_auto
0
3
hidden
0
3
hide_tip
0
3
max_answers
3
min_answers
3
other_comment_mandatory
0
3
other_numbers_only
0
3
other_replace_text
en
3
page_break
0
3
public_statistics
0
3
random_group
3
random_order
0
3
scale_export
0
sid
admin
expires
startdate
adminemail
anonymized
faxto
format
savetimings
template
language
additional_languages
datestamp
usecookie
allowregister
allowsave
autonumber_start
autoredirect
allowprev
printanswers
ipaddr
refurl
publicstatistics
publicgraphs
listpublic
htmlemail
sendconfirmation
tokenanswerspersistence
assessments
usecaptcha
usetokens
bounce_email
attributedescriptions
emailresponseto
emailnotificationto
tokenlength
showxquestions
showgroupinfo
shownoanswer
showqnumcode
bouncetime
bounceprocessing
bounceaccounttype
bounceaccounthost
bounceaccountpass
bounceaccountencryption
bounceaccountuser
showwelcome
showprogress
questionindex
navigationdelay
nokeyboard
alloweditaftercompletion
googleanalyticsstyle
googleanalyticsapikey
12947
N
G
N
default
en
N
N
N
Y
0
N
N
N
N
N
N
N
N
Y
Y
N
N
D
N
15
Y
B
Y
X
N
Y
Y
0
0
N
N
surveyls_survey_id
surveyls_language
surveyls_title
surveyls_description
surveyls_welcometext
surveyls_endtext
surveyls_url
surveyls_urldescription
surveyls_email_invite_subj
surveyls_email_invite
surveyls_email_remind_subj
surveyls_email_remind
surveyls_email_register_subj
surveyls_email_register
surveyls_email_confirm_subj
surveyls_email_confirm
surveyls_dateformat
surveyls_attributecaptions
email_admin_notification_subj
email_admin_notification
email_admin_responses_subj
email_admin_responses
surveyls_numberformat
attachments
12947
en
Tests using "self" and "that" variable
These variables make it easier to do assessments and check whether any part of a question has been answered.
The following syntax is available:<br /> <ul> <li> <em>self</em></li> <li> <em>self</em>.<em>suffix</em></li> <li> <em>self</em>.<em>sub-selector</em></li> <li> <em>self</em>.<em>sub-selector</em>.<em>suffix</em></li> </ul> <br /> <em>suffix </em>is any of the normal qcode suffixes (e.g. NAOK, value, shown)<br /> <em>sub-selector</em> is one of:<br /> <br /> comments - only subquestions that are comments (e.g. from multiple choice with comment and list with comment)<br /> nocomments - only subquestions that are not comments<br /> sq_X - where X is a row or column identifier. Only sub-questions matching pattern X are selected.<br /> <br /> The 'that' variable is like the 'self' variable, but lets you refer to other questions. Its syntax is:<br /> <ul> <li> that.<em>qname</em></li> <li> that.<em>qname.suffix</em></li> <li> that.<em>qname.sub-selector</em></li> <li> that.<em>qname.sub-selector.suffix</em></li> </ul> <br /> <em>qname </em>is the question name without any sub-question extensions. So, say you create a question 'q1', that is its qname<br /> <br /> Examples:<br /> <ul> <li> Has any part of question q1 been answered? { count(that.q1.NAOK)>0 }</li> <li> What is the assessment score for q2? { sum(that.q2.valueNAOK) }</li> <li> What is the grand total of q3? { sum(that.q3.NAOK) }</li> <li> What is the total of row C in q4? { sum(that.q4.sq_C.NAOK) }</li> <li> What is the total of column 2 in q4? { sum(that.q4.sq_2.NAOK) }</li> </ul>
Invitation to participate in a survey
Dear {FIRSTNAME},<br /><br />you have been invited to participate in a survey.<br /><br />The survey is titled:<br />"{SURVEYNAME}"<br /><br />"{SURVEYDESCRIPTION}"<br /><br />To participate, please click on the link below.<br /><br />Sincerely,<br /><br />{ADMINNAME} ({ADMINEMAIL})<br /><br />----------------------------------------------<br />Click here to do the survey:<br />{SURVEYURL}<br /><br />If you do not want to participate in this survey and don't want to receive any more invitations please click the following link:<br />{OPTOUTURL}
Reminder to participate in a survey
Dear {FIRSTNAME},<br /><br />Recently we invited you to participate in a survey.<br /><br />We note that you have not yet completed the survey, and wish to remind you that the survey is still available should you wish to take part.<br /><br />The survey is titled:<br />"{SURVEYNAME}"<br /><br />"{SURVEYDESCRIPTION}"<br /><br />To participate, please click on the link below.<br /><br />Sincerely,<br /><br />{ADMINNAME} ({ADMINEMAIL})<br /><br />----------------------------------------------<br />Click here to do the survey:<br />{SURVEYURL}<br /><br />If you do not want to participate in this survey and don't want to receive any more invitations please click the following link:<br />{OPTOUTURL}
Survey registration confirmation
Dear {FIRSTNAME},<br /><br />You, or someone using your email address, have registered to participate in an online survey titled {SURVEYNAME}.<br /><br />To complete this survey, click on the following URL:<br /><br />{SURVEYURL}<br /><br />If you have any questions about this survey, or if you did not register to participate and believe this email is in error, please contact {ADMINNAME} at {ADMINEMAIL}.
Confirmation of your participation in our survey
Dear {FIRSTNAME},<br /><br />this email is to confirm that you have completed the survey titled {SURVEYNAME} and your response has been saved. Thank you for participating.<br /><br />If you have any further questions about this email, please contact {ADMINNAME} on {ADMINEMAIL}.<br /><br />Sincerely,<br /><br />{ADMINNAME}
1
Response submission for survey {SURVEYNAME}
Hello,<br /><br />A new response was submitted for your survey '{SURVEYNAME}'.<br /><br />Click the following link to reload the survey:<br />{RELOADURL}<br /><br />Click the following link to see the individual response:<br />{VIEWRESPONSEURL}<br /><br />Click the following link to edit the individual response:<br />{EDITRESPONSEURL}<br /><br />View statistics by clicking here:<br />{STATISTICSURL}
Response submission for survey {SURVEYNAME} with results
<style type="text/css"> .printouttable { margin:1em auto; } .printouttable th { text-align: center; } .printouttable td { border-color: #ddf #ddf #ddf #ddf; border-style: solid; border-width: 1px; padding:0.1em 1em 0.1em 0.5em; }

.printouttable td:first-child { font-weight: 700; text-align: right; padding-right: 5px; padding-left: 5px;

} .printouttable .printanswersquestion td{ background-color:#F7F8FF; }

.printouttable .printanswersquestionhead td{ text-align: left; background-color:#ddf; }

.printouttable .printanswersgroup td{ text-align: center; font-weight:bold; padding-top:1em; } </style>Hello,<br /><br />A new response was submitted for your survey '{SURVEYNAME}'.<br /><br />Click the following link to reload the survey:<br />{RELOADURL}<br /><br />Click the following link to see the individual response:<br />{VIEWRESPONSEURL}<br /><br />Click the following link to edit the individual response:<br />{EDITRESPONSEURL}<br /><br />View statistics by clicking here:<br />{STATISTICSURL}<br /><br /><br />The following answers were given by the participant:<br />{ANSWERTABLE}
0