10-14-2016 12:16 PM
I am using CallStudio 10.5
I need to implement an DigitWithCofirm element such that validate user input,
Consider following two scenario :
- DigitWithConfirm element is used to capture the date that enter by user by 4 digits (Just like the expired day of the credit card), if user input invalid date like 1300, the program will just crush. But I want the behavior is go back to ask the user input again.
- If using the regular DigitWithConfirm, after user input the valid date, and then he/she realize the date he/she enter is wrong, after he/she hear the confirm audio, instead to press 1 to confirm, he/she want to input other key to go back to re enter the date.
How I can achieve this task?
Thank you in advance
Solved! Go to Solution.
10-17-2016 05:54 AM
The DigitWithConfirm is really just a Digits and a YesNoMenu element
combined into one element.
You can create the same functionality yourself by using a Digit element
to collect the date.
Then connect it to a YesNoMenu element where you confirm it using Say it
Smart (say it smart throws a Java exception if the date is not valid).
So in the Events tab of the YesNoMenu element, add an EventHandler path
to catch the Java Exception java.lang.Exception (case sensitive, no
blank spaces allowed!). That path means the date wasn't valid.
You can use a Counter element and a Decision element if you want to
limit the times the caller can press 2 (dis-confirm) or the number of
times they enter an in-valid date.
10-17-2016 05:54 AM
The DigitWithConfirm is really just a Digits and a YesNoMenu element
combined into one element.
You can create the same functionality yourself by using a Digit element
to collect the date.
Then connect it to a YesNoMenu element where you confirm it using Say it
Smart (say it smart throws a Java exception if the date is not valid).
So in the Events tab of the YesNoMenu element, add an EventHandler path
to catch the Java Exception java.lang.Exception (case sensitive, no
blank spaces allowed!). That path means the date wasn't valid.
You can use a Counter element and a Decision element if you want to
limit the times the caller can press 2 (dis-confirm) or the number of
times they enter an in-valid date.
10-28-2016 11:49 AM
Thanks for the answer above
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide