Problem with tutorial chapter 2.2
Posted: Mon Jul 30, 2007 9:23 pm
I am experiencing a strange result with the tutorial code from the chapter titled, "2.2 Gathering user input using builtin grammars."
My application looks like this:
Can someone see why this is happening?
Thanks much.
My application looks like this:
The following is a description of the behavior:<?xml version="1.0"?>
<vxml version="2.0">
<form id="support">
<field name="hasid" type="boolean">
<prompt>
If you know your customer identification number,
press 1. Otherwise, press 2.
</prompt>
</field>
<filled>
<if cond="hasid==false">
<goto next="#unknowncustomer"/>
</if>
</filled>
<field name="id" type="digits">
<prompt>
Enter your customer identification number.
</prompt>
<filled>
You entered <value expr="id"/>.
<!-- transfer to premium support -->
</filled>
</field>
</form>
<form id="unknowncustomer">
<block>
Please hold for the next available representative.
<!-- transfer to general support -->
</block>
</form>
</vxml>
I would expect pressing '2' to set the variable 'hasid' as 'False'. And I would expect the application to then skip to the form 'unknowncustomer' but instead it is prompting and requiring the input for the variable 'id'.C: If you know your customer identification number, press 1. Otherwise, press 2.
H: <presses 2>
C: Enter your customer identification number
H: <presses 123>
C: Please hold for the next available representative.
Can someone see why this is happening?
Thanks much.