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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.