Code: Select all
<form id="form1">
<field name="blah" type="digits">
<prompt count="1">
Please enter a number.
</prompt>
<prompt count="3">
Using your telephone keypad, enter a number.
</prompt>
<filled>
You entered <value expr="blah" />
</filled>
<catch event="nomatch noinput">
<reprompt />
</catch>
</field>
</form>
1 - Please enter a number.
2 - Please enter a number.
3 - Using your telephone keypad, enter a number.
4 or higher - Using your telephone keypad, enter a number.
Note that in the absence of a prompt whose count attribute exactly matches the number of the current iteration (in this example, 2, 4 or greater than 4), the prompt with the largest count attribute that is less than the number of the current iteration will be selected.