<form>
<form>
Attributes
Name
Data type
Description
String
String
Notes
Example
<?xml version="1.0"?>
<vxml version="2.0">
<form id="firstform">
<block>
<prompt>
Welcome! Let's move to a form where we gather some input.
</prompt>
<!-- A "#" symbol followed by an identifier specifies a -->
<!-- form or menu ID to jump to. -->
<goto next="#thirdform"/>
</block>
</form>
<form id="secondform">
<block>
<prompt>
You've made it to the final form! Goodbye.
</prompt>
<disconnect/>
</block>
</form>
<form id="thirdform">
<field name="lucky_number" type="digits?length=1">
<prompt>
Enter your lucky number.
</prompt>
<filled>
<prompt>
Your lucky number is <value expr="lucky_number"/>. Let's move on to another form.
</prompt>
<goto next="#secondform"/>
</filled>
<catch event="nomatch noinput" count="1,2">
<prompt>
Your lucky number should be 1 digit. Let's try again.
</prompt>
<reprompt/>
</catch>
<catch event="nomatch noinput" count="3">
<prompt>
I guess you don't have a lucky number. Let's move on to the next form anyways.
</prompt>
<goto next="#secondform"/>
</catch>
</field>
</form>
</vxml>Child Tags
Parent Tags
Last updated