Do not re-prompt
Posted: Tue Sep 18, 2012 12:59 pm
I am prompting user for a secondary id, but most users will not be entering this secondary id. In the code below, its the last prompt and I want it to prompt the user for a client number, but only prompt once. If nothing is entered, I want to assign a value of zero and go on with the next line. Without the <noinput>, it keeps reprompting for the client number. With the <noinput> it seems to just get stuck in a loop of the following:
Tue 18 Sep 2012 01:52:29 PM EDT:received event: noinput: VXI::assign_element(name="ClientID" expr = "0")Entering form = 'FirstPart' form item = 'id'VXI::field_element - activating grammars for form = 'FirstPart' formitem = 'id'VXI::do_recognition()PromptManager::Play()
Please help.
Thanks,
Hector
Tue 18 Sep 2012 01:52:29 PM EDT:received event: noinput: VXI::assign_element(name="ClientID" expr = "0")Entering form = 'FirstPart' form item = 'id'VXI::field_element - activating grammars for form = 'FirstPart' formitem = 'id'VXI::do_recognition()PromptManager::Play()
Code: Select all
<form id="FirstPart">
<filled>
<if cond="CalledID==3999">
<assign name="AgencyID" expr="281"/>
<elseif cond="CalledID==8888"/>
<assign name="AgencyID" expr="281"/>
<else/>
<assign name="AgencyID" expr="281"/>
</if>
</filled>
<block>
<prompt>
<audio src="wavfiles/spa1.mp3">
Welcome to Visit Clock.
</audio>
</prompt>
</block>
<field name="ProviderID" type="digits">
<prompt>
<audio src="wavfiles/spa2.mp3">
Please enter your employee ID using the keypad.
</audio>
</prompt>
</field>
<field name="id" type="digits">
<prompt>
<audio src="wavfiles/spa3.mp3">
Please enter the client number using the keypad.
</audio>
</prompt>
<filled>
<assign name="ClientID" expr="id"/>
</filled>
<noinput>
<assign name="ClientID" expr="0"/>
</noinput>
</field>
<filled>
<submit namelist="AgencyID CallerID ProviderID ClientID" next="http://blah/blah/blah" />
</filled>
</form>
Thanks,
Hector