VoiceXML Forum Community Message Board


Post New Topic  Post A Reply
my profile | register | search | faq | forum home
  next oldest topic   next newest topic
» VoiceXML Forum Community Message Board   » Newbies   » A number... then press pound.

 - UBBFriend: Email this page to someone!    
Author Topic: A number... then press pound.
tojo933
Junior Member
Member # 3691

Icon 1 posted August 03, 2006 01:56 PM      Profile for tojo933     Send New Private Message       Edit/Delete Post   Reply With Quote 
I have a number input field that will contain a number of variable legnth. I am using only dtmf input. To keep things simple for the user and the server I would like to have the pound key signal the end of the number. How can this be done?

Sofar:
<field name="confirm" type="number">
<prompt>Please enter the number then press pound.</prompt>
</field>

[ August 03, 2006, 01:57 PM: Message edited by: tojo933 ]

Posts: 3 | Registered: Aug 2006  |  IP: Logged
mheadd
Member
Member # 3181

Member Rated:
4
Icon 1 posted August 03, 2006 05:03 PM      Profile for mheadd   Author's Homepage   Email mheadd   Send New Private Message       Edit/Delete Post   Reply With Quote 
Use the termchar property. By default, this propery is set to '#', so I think your code (as written) will work.

In other words, unless you specifcy differently, the '#' should termiante DTMF entry.

Hope this helps.

--------------------
Mark
VoiceinGov.org
http://www.voiceingov.org

Posts: 55 | Registered: Jun 2005  |  IP: Logged
tojo933
Junior Member
Member # 3691

Icon 1 posted August 03, 2006 08:34 PM      Profile for tojo933     Send New Private Message       Edit/Delete Post   Reply With Quote 
actually, that didn't work. It accepted my input before I hit the # key. I meant this so a pause would not interupt the input. Its fine though.

[ August 03, 2006, 09:33 PM: Message edited by: tojo933 ]

Posts: 3 | Registered: Aug 2006  |  IP: Logged


All times are Eastern  
Post New Topic  Post A Reply Close Topic    Move Topic    Delete Topic next oldest topic   next newest topic
 - Printer-friendly view of this topic
Hop To:

Contact Us | VoiceXML Forum



Powered by Infopop Corporation
UBB.classicTM 6.3.1.2