2.5. Form items

VoiceXML defines a "form item" as an element that is a child of form and is of one of the following element types:

  • field,

  • block,

  • initial,

  • subdialog,

  • object,

  • record,

  • transfer.

Up until now, we've only discussed the first of these - the field element type. We have also seen form-level filled elements, but these are not considered "form items." A form item has a very particular meaning with respect to the Form Interpretation Algorithm.

Every form item has the following:

result variable

This is an ECMAScript variable whose name is defined by the form item's name attribute, and whose scope is that of the containing dialog. When a form item has been successfully visited, its result variable will contain the result of that visitation. For ...

Get Definitive VoiceXML™ now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.