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.
; Filename=00000001.IIF
$type question
$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
$next_box 2
$error_exit erriif
; Filename=00000002.IIF
$type question
$image_desc s
$script "Please enter the size needed"
$get_var SIZE 2 2
$validate digits confirm
$next_box 3
$error_exit 999
; Filename=00000003.IIF
$type question
$image_desc s
$script "Now enter the four digit business code"
$get_var CODE 4 4
$validate digits
$confirm_desc @FFBASE\image\00001402.vox
$next_box 4
$error_exit 999
; Filename=00000004.IIF
$type question
$image_desc s
$script "Now enter the City, County or MSA code"
$get_var UNITS 3 5
$validate digits
$confirm_desc @FFBASE\image\00001403.vox
$next_box 2
; Filename=00000005.IIF
$type question
$image_desc s
$script "Enter the 10-digit telephone"
$script "number, starting with the area code"
$get_var FORWHO 7 10
$validate phone_mask
$next_box 6
; Filename=00000006.IIF
$type record
$record_limit 60 ; Limit in seconds to record
$record_dir @FFBASE\messages
$image_desc s
$script "Please state your name and address, press"
$script "any key when you are done"
$next_box 101
Topic url: http://www.copia.com/support/refmanual/index.html?question_boxes.htm