catch event with count attribute ignored
Posted: Tue Oct 21, 2014 11:39 am
Given the code below that occurs directly below the <vxml/> element, I'm trying to get it so that if you answer No, then Yes, it prompts with "You must file..." and starts over. But if you answer that 3 times, it prompts with 'Because you have not...' and ends the call. I never hit the count=3 <catch/> element. I jus keep cycling through.
Code: Select all
<form id="severance">
<catch event="noUnemployedInsurance" count="3">
<prompt cond="culture=='en-US'">Because you have not......</prompt>
<goto next='../Shared.Severance/VXML/EndCall.aspx' maxage="0" maxstale="0"/>
</catch>
<catch event="noUnemployedInsurance">
<prompt cond="culture=='en-US'">You must file...</prompt>
<goto next="#severance" />
</catch>
<field name="isUnemployedInsurance" type="boolean" cond='true' expr='undefined'>
<prompt cond="culture=='en-US'">Have you filed for state unemployment insurance benefits? Please press 1 for yes or 2 for no.</prompt>
</field>
<field name="isUnemployed" type="boolean">
<prompt cond="culture=='en-US'">Are you currently unemployed? Please press 1 for yes or 2 for no.</prompt>
<filled>
<if cond="!isUnemployedInsurance && isUnemployed">
<assign name="isUnemployed" expr="undefined"/>
<assign name="isUnemployedInsurance" expr="undefined"/>
<throw event="noUnemployedInsurance"/>
</if>
</filled>
</field>
....