(that means "YES" or "NO", one or the other)
Asking for the client's name: You may ask the client for a name by defining a question of
type "NAME" as shown here. If
you do NOT include one or more questions of type "NAME", WhizQuest will automatically include the question:
Please enter your name:
Otherwise, it will show the question as you've entered it.
(Note, though, you may put up a questionnaire with NO name field by including the tag,
<ANONYMOUS = "YES"> in the file and declaring no NAME labels)
An example: the tag,
<LABEL="q1" PROMPT="What is your surname?" TYPE="NAME" LENGTH="40" REQUIRED="YES">
would produce:
What is your surname? (Required)
WhizQuiz uses the "NAME" tag in its response to the user, so if you are asking for first and last
names, use a "NAME" tag for the first name and a "TEXT" tag for the last, to get a friendly response.
Note: if the question is "required", WhizQuest will check that a value has been entered before
processing the form.
|
Names |
Specific text |
Choice Lists |
Pop-up Lists |
Multi-select |
Numeric |
(that means "YES" or "NO", one or the other)
Asking for any specific TEXT value: You may ask the client for a a specific text value
with this tag. It is exactly like the "NAME" tag, except that it does not replace the program's
default request for a client's name.
As an example, the tag,
<LABEL="q2" PROMPT="Where were you born?" TYPE="NAME" LENGTH="30" REQUIRED="NO">
would produce:
Where were you born?
If the "LOG" parameter is set to "YES" the client's response will be shown associated with any
free-format question response the client gives. The default is "NO".
|
Names |
Specific text |
Choice Lists |
Pop-up Lists |
Multi-select |
Numeric |
Asking the client to pick one of a set (First way): You may create a set of mutually exclusive choices
with this tag. It creates a set of radio buttons, labeled with your choices. Normally, each choice
will appear on its own line. However if you set the "BREAK" tag to "NO", the choices will be listed on
one line. For example, the tag,
<LABEL="q4" PROMPT="How many times can a cannon ball fly?" TYPE="RADIO" CHOICES="one,two,skip a few,100" REQUIRED="NO">
would produce:
How many times can a cannon ball fly? one
two
skip a few
100
but with the added parameter, BREAK = "NO" inserted, it would show:
How many times can a cannon ball fly? one
two
skip a few
100
If the "LOG" parameter is set to "YES" the client's response will be shown associated with any
free-format question response the client gives. The default is "NO".
Asking the client to pick one of a set (Second way): You can use a popup list to get the client to select
one from a set of mutually exclusive choices
with this tag. For example, the tag,
<LABEL="q6" PROMPT="How many times can a cannon ball fly?" TYPE="POPUP" CHOICES="one,two,skip a few,100" REQUIRED="NO">
would produce:
How many times can a cannon ball fly?
(click here)
one
two
blowin' in the wind
100
If the "LOG" parameter is set to "YES" the client's response will be shown associated with any
free-format question response the client gives. The default is "NO".
NOTE: you can specify the text shown before the user has selected anything in the popup. The
default is "(click here)". You can change this for all popups by including a tag in your quest
file: <POPDEFAULT="text">. This can only be set once for the entire questionnaire.
|
Names |
Specific text |
Choice Lists |
Pop-up Lists |
Multi-select |
Numeric |
Multiple Selections are also possible: You can ask the user to select any or all of a set of choices
using this tag. It creates a set of check boxes, labeled with your choices. Normally, each box and choice
will appear on its own line. However if you set the "BREAK" tag to "NO", the choices will be listed on
one line. For example, the tag,
<LABEL="q7" PROMPT="If I had a..." TYPE="RADIO" CHOICES="hammer,bell,song to sing" REQUIRED="YES">
would produce:
If I had a... (Required) hammer
bell
song to sing
but with the added parameter, BREAK = "NO" inserted, it would show:
If I had a... (Required) hammer
bell
song to sing
If the "LOG" parameter is set to "YES" the client's response will be shown associated with any
free-format question response the client gives. The default is "NO".
|
Names |
Specific text |
Choice Lists |
Pop-up Lists |
Multi-select |
Numeric |
Asking for Numeric Information: You can ask the user to enter a number either as a numeric value (a percentage
or decimal number) or as an INTEGER (for Student ID, for example) with this tag. If you provide a maximum and minimum,
WhizQuest will check that the value provided is between those values. If you provide an absolute number of digits for
an INTEGER (NUMDIGITS), it will ensure that the user enters the correct number of digits. LENGTH will default to
10 or to the number of digits plus 3.
For example, the tag,
<LABEL="q9" PROMPT="Enter your student ID number" TYPE="INTEGER" NUMDIGITS="9" REQUIRED="NO" LOG="YES">
would produce:
Enter your student ID number
A value of "123-45-6789" would be acceptable, but "1234567890" would not (too many digits).
If the "LOG" parameter is set to "YES" the client's response will be shown in the log file associated with any
free-format question response the client gives. The default is "NO".
|
Names |
Specific text |
Choice Lists |
Pop-up Lists |
Multi-select |
Numeric |