In a Command Center questionnaire, there are two major types of mask with their corresponding roles:
Input mask: This type is used to force or filter user input to conform to a particular pattern or range (independent of the choice codes that have been defined for the question).
Note: Input masks are only appropriate for single-response questions i.e. maximum number of responses set to 1.
Function mask: This type does not filter user input but is used to access or launch specific functions and external programs from the question.
In some cases, when special data is needed, i.e. that cannot be described exhaustively with choices, you can create a user-defined mask i.e. a string describing a required entry pattern. It is a combination of any character(s), which must be entered by the interviewer, and the following wild characters:
A alphabetic
Z alphanumeric
9 numeric
* any characters
Examples:
During the interview, the mask: |
AA99-Z |
would accept the responses: |
XY87-9 |
|
|
but would not accept: |
8987-9 |
A mask for a North American phone number would be: |
999-999-9999 |
|
|
A BLANK mask means "no mask". In all cases, choice codes take precedence over the mask and are not subject to the mask; thus you could have $D as a mask, to collect a date, and the following choices:
Choice No. |
Code |
Label |
1 |
1225 |
Christmas |
2 |
0101 |
New Year's Day |
3 |
X |
DK/NA |
The pre-defined masks can be accessed from a cascading list. To display this list, right-click in the Masks field, from the Question tab:
Mask |
String |
Function |
|
Real number |
Formats a real number to nnn decimal places; the entry will be right justified and filled with leading blanks. Example: for an amount in dollars and cents: $R.2 |
||
$R.nnn mmm nnn |
Formats a real number within lower and upper bounds. Example: For an amount in dollars and cents, ranging from 1 dollar and 50 cents to 10 dollars: $R.2 1.50 10.00 Note: You can use a recalled value to specify the lower or upper bound. See Recalls. Example: $R.2 <MINAMNT> 99.99 |
||
|
TSEP=(thousands separator) DSEP=(decimal separator) |
TSEP= specifies the separator to be used between thousands when displaying the captured or computed number in a Recall. If necessary, to avoid ambiguity, use " " to enclose the separators. DSEP= specifies the decimal separator. The defaults are: no separator for TSEP and “.” for DSEP. Example: Suppose that the number from Q1 to be displayed is 4356777.79. If the mask for Q1 is $R.2 TSEP=, the recall <Q1 > will display 4,356,777.79; if the mask is $R.2 TSEP=" " DSEP=, then the recall <Q1> displays 4 356 777,79 Notes:
|
|
Integer number |
$E |
Integer number < 32768 Example: age, number of times etc. The entry will be right justified and filled with leading 0’s. |
|
$E nnn mmm |
Integer number within lower and upper bounds. Example: for an age between 12 and 75: $E 12 75 Note: You can use a recalled value to specify the lower or upper bound. See Recalls. Example: $E 18 <AGE1> |
||
Date Responses to questions using a $D or $C mask are always stored in the database as yyyymmdd.
|
$D |
Date in format yyyymmdd. Code width (8) Note: The year, month and day can be extracted in computed questions using the YEA, MON, DAY functions. |
|
$D /SPLIT |
Option: Presents the date at the bottom of the window with drop-down fields for the respondent to compose the date: |
||
$D nnn mmm |
Date within specified bounds. Example: $D 20030501 20030615 Note: You can use a recalled value to specify the lower or upper bound. See Recalls. Example: $D <DATE1:C> <DATE2:C> The :C option is used to avoid any text formatting. |
||
FORMAT=(date format) |
Controls the format to be used when entering and displaying the response to a date question. The FORMAT specification is a sequence of yy or yyyy, mm, dd and an optional separator. Examples: $D 20121210 20130131 FORMAT=mm/dd/yyyy $C FORMAT=dd-mm-yyyy $D <BEGDATE> <ENDDATE> format=<QDATEF> The default format is FORMAT=yyyymmdd Notes:
|
||
Calendar |
$C yyyymmdd yyyymmdd |
Displays a pop-up calendar between the two dates specified, from which you can select a date: Example: $C 19990901 20000202 This would pop-up a calendar with days available between September 1, 1999 to February 2, 2000. Note: You can use a recalled value to specify the lower or upper bound. See Recalls. |
|
FORMAT=(date format) |
See the description for $D (above) |
||
NB applying to recalled bounds for $R, $E, $D and $C masks (see above): If the recalled value for a bound cannot be interpreted as a valid entry, it is ignored. Avoid situations where the lower bound is greater than the upper bound; during the interview both will be ignored. |
|||
Call-back |
$CH |
For use with the CB (call-back) question, displays a pop-up calendar and a clock showing both the respondent's time and the local time. A question using this mask must have a code width of 12 and the maximum number of responses must be 1. Option: To prevent selection of a date and time already in the past, use the /v option. Note: To view the number of existing callbacks (appointments) when scrolling through the calendar, see the CB question in Special Questions. |
|
To restrict the pop-up calendar and clock to dates and times defined in the Call-backs Calendar and Shifts definitions, add the S (Shifts) toggle to the $CH mask. See Shifts, for instructions on using this mask. Option: To prevent access to and modification of the 12 digit field generated by the mask, use the /Lock option. |
|||
Postal Code |
France |
Displays the postal code using French format. |
|
Text |
$L |
Will accept either lower or upper case letters. Note: when there is no mask, all input is converted to upper case. |
|
$P |
Will capitalize the first letter of each word entered, leaving the other letters in lower case. |
||
Credit card |
$Z |
Checks that the last digit conforms to the credit card check digit algorithm. |
|
Time of day (not in the menu) |
$H |
Time of day with hhmm format (code width must be 4). Note: For computational purposes, the returned value is in minutes. |
|
Email address |
$@ |
Checks that the address conforms to the format of an email address. |
|
Telephone device key input |
$IVRMM_CODES |
For IVRMM surveys, forces the keys 0-9 and # to be interpreted as codes. Without this mask, key input 1-9 is interpreted as the index position of the code. |
The Function masks can also be accessed from a cascading list. To display this list, right-click in the Masks field, from the Question tab:
Mask |
String |
Function |
|
$N |
Dials phone numbers. Several switches can be applied when using the $N mask.
|
||
$V |
Records the open-ended response to a file. This command is identical to $PRONTO RECORD OPENEND (see below) |
||
$PRONTO |
DIAL phone no= |
Manual dialing (preview mode) |
|
DIAL_ADVANCE |
Puts the call on-hold and dials a new number on a new line |
||
HANGUP |
Terminates the call |
||
SEND_DTMF dtmf= |
Sends a DTMF tone |
||
RECORD filename= |
Record to a file |
||
RECORD OPENEND ($V) |
Records the open-ended response to a file |
||
PLAY filename= |
Playback a sound file |
||
STOP |
Stop playback or record |
||
TRANSFER_ACD |
Transfers the call to an IVRMM module. |
||
TRANSFER_IVR |
Transfers the call to an IVR script |
||
ORIGINATINGCALLERID= |
Uses the phone number in the specified question for Originating Caller Id. |
||
Look-up table |
Provides access to look-up tables that have been set up within the Command Center. Useful for very long lists of choices which can be accessed by accessed by multiple search criteria, and for retrieving additional information into questions. For syntax, setting up long tables and the user interface, see the Long Table BUILDER. |
||
|
PROVIDER="connection string" |
Provides access to look-up tables through SQL requests. Useful for very long lists of choices which can be accessed by multiple search criteria, and for retrieving additional information into questions. Note: Recalls of questions and system variables are supported, allowing the SQL statement to pre-filter the results that will be initially displayed to the interviewer. Example: $T PROVIDER="Data Source= TESTDB\temp;Initial Catalog= VoxcoSystem;User Id= testadmin;Password=password" SQL="select ID, Code, Label, ID1, CityCode, City2, State from LT_Data". The fields defined in the Select statement will be displayed in that order in a table. Filters can be applied on any of the fields, and a sort can also be set for the table. |
|
Database access |
$SQL with assistant $SQL without assistant |
See $SQL Mask |
|
Selection |
$S |
See Selection |
Performs single/multiple selection of choices based on complex criteria. See Selection. |
Panel |
$PANEL |
UPDATEREWARD AMOUNT=n |
For a Panel-enabled project, will add n reward points to the panelist taking the survey. Note: The n value may be positive or negative. |
Send email (Web and VCC) |
$SENDMAIL |
See $SENDMAIL mask |
Sends an email. See $SENDMAIL mask. |
Add to Do Not Call list |
|
When the question bearing this mask is accessed, the phone number contained in the $N system variable will automatically be added to the DoNotCallList table in the database. Note: Blocking "do not call" cases in the imported sample is described in the Import module |
|
Execute |
$X |
Note: CAPI Windows only. |
Executes an application on the laptop. Example: $X /W C:\INTERV\VB_APP\MYAPPS\MYPROG.EXE |