-
Notifications
You must be signed in to change notification settings - Fork 0
/
simplesurvey.sdl
78 lines (64 loc) · 1.67 KB
/
simplesurvey.sdl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# --------------------------------------------------------------------
# A test survey - demonstrate language and UI features
# --------------------------------------------------------------------
(survey "Simple Test Survey")
(intro "
Welcome to this test survey - demonstrating:
- ranking
- short text entry
- conditional exclusion of questions
- multiple and single choice answers
"
)
# ---------------------------------------------
# I. This is a comment
# ---------------------------------------------
(section "Main : Section One"
(query "rank test"
(question "Rank the following items in order of the most liked to the least liked:")
(answer rank ("apple")("orange")("carrot")("tomato")("celery")))
(query "have pet"
(question "Do you have a pet?")
(answer choose
("Yes")
("No" exclude("Pets"))
)
)
)
(section "Pets"
(query "petname"
(question "What is your pet's name?")
(answer short-text)
)
(query "walkfreq"
(question "How often do you walk your pet (choose any that apply):")
(answer choose 1 ..
("Never")
("Morning" exclude("catcheck"))
("Afternoon" exclude("catcheck"))
("In the dark" exclude("catcheck"))
("Once per day" exclude("catcheck"))
)
)
(query "pet prefs"
(question "Please rank by importance the following pet preferences:")
(answer rank
("Kibble") ("Bits")
("Toys") ("Squirrel")
("Walking")
)
)
(query "catcheck"
(question "Is your pet a cat?")
(answer choose
("Yes")
("No")
)
)
)
(section "Wrap-up"
(query "name"
(question "Please enter your name:")
(answer short-text)
)
)