11-18-2011 06:10 AM - edited 03-14-2019 08:54 AM
hi all,
how can I use form element to collect 18 DTMF inputs,including 0~9,* key and # as terminal key?
Solved! Go to Solution.
11-20-2011 06:40 AM
I don't think the GD will accept a "star" input Chad. Never tried it though.
With a CVP VXML Form element, you can set up normal digit entry with "builtin:dtmf/digits"
I don't know if there is a builtin for accepting "star".
Regards,
Geoff
11-18-2011 08:25 AM
Are you trying to make a menu with 18 options? Something like
0
1
2
3
4
5
6
7
8
9
*
11
12
13
14
15
16
17
You could use a get digits element with min length 1, max length 2, turn down the interdigit timer and use a decision element to analyze the input. Set up the get digits so it only allows 1 try, then control the retries through the validator with your own counter.
I actually do this with a microapp.
Regards,
Geoff
11-18-2011 08:24 PM
hi geoff,
I mean I want to collect 18 inputs, inlcluding numbers and * key,which is the ID card of Chinese citizen,use the # key as a terminal key.
for example 12345678901234567*#,the 12345678901234567* is the ID card.
11-19-2011 11:08 AM
Geoff is correct still...
in
stead use the getdigits element with min of 18 and max of 18 with termination key of #.
You could also use the GD microapp as Geoff suggested.
page 180 and look over the GD micro app.
Cheers,
Chad
11-20-2011 06:40 AM
I don't think the GD will accept a "star" input Chad. Never tried it though.
With a CVP VXML Form element, you can set up normal digit entry with "builtin:dtmf/digits"
I don't know if there is a builtin for accepting "star".
Regards,
Geoff
02-01-2014 03:14 PM
Thanks it help
And from Java code
public Setting[] getSettings() throws ElementException {
Setting[] settingArray = new Setting[11];
....
settingArray[10] = new Setting("dtmf_grammar", "DTMF Grammar", "Defines an external DTMF grammar for Form", Setting.OPTIONAL,
Setting.REPEATABLE, Setting.SUBSTITUTION_ALLOWED, Setting.STRING);
settingArray[10].setDefaultValue("builtin:dtmf/digits");
return settingArray;
}
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