Page 1 of 1

Call is getting hanged, is there any problem with the code

Posted: Mon Jun 21, 2010 4:05 am
by kishore.inline
Hi

the following code is written by me, and onces client id is valid it should go to caretakerid validation xml block. But call is getting hanged.

Please help me is the below code written is correct or wrong.

<form id="clockin">
<field name="customerid" type="digits?length=4">
<prompt>
You have selected for Clock In.
</prompt>
<prompt>
Enter Client ID and press Hash to Submit.
</prompt>
<filled>
You entered <value expr="customerid"/>.
<prompt>
Please wait while we process your information.
</prompt>
<submit namelist="customerid" method="post" next="http://voicexcall.99k.org/TestVXML/CustomerID.php"/>
<goto next="#caretakerid"/>
</filled>
<noinput>
Sorry, No Input received.
<reprompt/>
</noinput>
<nomatch>
Sorry, Invalid Client ID.
<reprompt/>
</nomatch>
</field>
<block>
Please hold for clockin.
</block>


<field name="caretakerid" type="digits?length=6">
<prompt>
Enter CareTaker ID and Password. Enter CareTakerID followed by Star then Password. And press Hash to Submit.
</prompt>
<filled>
You entered <value expr="caretakerid"/>.
<prompt>
Please wait while we process your information.
</prompt>
<submit namelist="caretakerid" next="http://voicexcall.99k.org/TestVXML/CareTakerID.php"/>
</filled>
<noinput>
Sorry, No Input received.
<reprompt/>
</noinput>
<nomatch>
Sorry, Invalid CareTaker ID.
<reprompt/>
</nomatch>
</field>
<block>
Please hold for clockin.
</block>



</form>

Re: Call is getting hanged, is there any problem with the co

Posted: Mon Jun 21, 2010 9:07 am
by support
Hi,

This issue here is that you are trying to use the next attribute within the goto tag to jump to another field within a single form, but what you want to do is use that tag to jump to another form altogether. The easiest fix is to simply add a new <form> around the part of the code that you want to jump to. Here's an example:

Code: Select all

<?xml version="1.0"?>
<vxml version="2.0">
  <form id="clockin">
<field name="customerid" type="digits?length=4">
      <prompt>
        You have selected for Clock In.

	Enter Client ID and press Hash to Submit.
      </prompt>
      <filled>
        You entered <value expr="customerid"/>.

	Please wait while we process your information.

	<goto next="#nextform"/> 
      </filled>
<noinput>
Sorry, No Input received.
<reprompt/>
</noinput>
<nomatch>
Sorry, Invalid Client ID.
<reprompt/>
</nomatch>
</field>
<block>
Please hold for clockin.
</block>
</form>


<form id="nextform">
<field name="caretakerid" type="digits?length=6">
      <prompt>
        Enter CareTaker ID and Password. Enter CareTakerID followed by Star then Password. And press Hash to Submit.
      </prompt>
      <filled>
        You entered <value expr="caretakerid"/>.

	Please wait while we process your information.

      </filled>
<noinput>
Sorry, No Input received.
<reprompt/>
</noinput>
<nomatch>
Sorry, Invalid Client ID.
<reprompt/>
</nomatch>
</field>
<block>
Please hold for clockin.
</block>



</form>
</vxml>


Regards,
Plum Support