Question boxes are implemented as a number of types of infobox, which are not real ‘images’ but which can be used to collect information from the caller and to control the course of the call. Though we use the generic name ‘question box’ for this type of infobox, not all of these infoboxes actually cause a question to be asked of the caller; some are used to process the results of the question.
Each .IIF file used in a question box sequence should start with a $type command which specifies the type of infobox box it is.
$image_desc standard ; play 00000001.VOX
$script "Please enter your 4 digit part number"
$get_var PARTNO 4 4 ; min 4 max 4
$validate partno.ndx 3 noconfirm ; allow 3 retries
$script "Please enter the size needed"
$get_var SIZE 2 2
$validate digits confirm
$script "Now enter the four digit business code"
$get_var CODE 4 4
$script "Now enter the City, County or MSA code"
$get_var UNITS 3 5
$script "Enter the 10-digit telephone"
$script "number, starting with the area code"
$get_var FORWHO 7 10
$record_limit 60 ; Limit in seconds to record
$script "Please state your name and address, press"
$script "any key when you are done"