TeleFlow Forums
http://teleflow.org/phpbb/

Finding length of response
http://teleflow.org/phpbb/viewtopic.php?f=10&t=68
Page 1 of 1

Author:  bmassey [ Thu Oct 16, 2003 1:49 pm ]
Post subject: 

Is there a way to determine the length of a response? For example, if I ask the caller to enter their phone number then I want to make sure they enter 10 digits. <br> <br>I have looked in the help menu but can't find anything that relates to this.

Author:  Scott [ Thu Oct 16, 2003 4:32 pm ]
Post subject: 

Absolutely. There are many ways to do what you are asking. The simplest way to do this would be to use a Get Touch Tone String, set maximum to 10 and a variable such as @ReturnString. <br> <br>Next use the MATH ( @Width for example )step and use the String Length of function and find the width of the touch tone variable. <br> <br>To Finish use the Compare step and make sure that @Width = 10. If that fails, play a message asking them to try again and give them a few chances to enter the input. <br> <br>We have included the template tams MenuSet and InputMan. Place MenuSet before before the get Touch Tone and the InputMan on the errors. Also, you would probably want to put a clear touchtone step before the message that asks the caller to enter the digits.

Author:  bmassey [ Fri Oct 17, 2003 6:36 am ]
Post subject: 

Got it. Thanks!

Page 1 of 1 All times are UTC - 8 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/