<noinput>

<noinput>

The <noinput> element abbreviates <catch event=“noinput”>.

Attributes

Name
Data type
Description

count

Integer

(defaults to 1) The occurrence of the event. The count allows you to handle different occurrences of the same event differently.

Each <form>, <menu>, and form item maintains a counter for each event that occurs while it is being visited. These counters are reset each time the <menu> or form item's <form> is re-entered. The form-level counters are used in the selection of an event handler for events thrown in a form-level <filled>.

Counters are incremented against the full event name and every prefix matching event name. For example, occurrence of the event “event.foo.1” increments the counters associated with handlers for “event.foo.1” plus “event.foo” and “event”.

cond

String

(defaults to true) An expression that must evaluate to true after conversion to Boolean in order for the event to be caught.

Notes

None

Example

<?xml version="1.0"?>
<vxml version="2.0">
  <form>
    <field name="user_id" type="digits?length=5">
      <prompt>
        Please enter your user identification number.
      </prompt>
      <filled>
        <prompt>
          You entered <value expr="user_id"/>. Goodbye.
        </prompt>
        <exit/>
      </filled>
      <noinput count="1">
        <prompt>
          You did not enter any input. Please try again.
        </prompt>
        <reprompt/>
      </noinput>
      <noinput count="2">
        <prompt>
          You did not enter any input. Your user identification number is in your sign up email.
        </prompt>
        <reprompt/>
      </noinput>
      <noinput count="3">
        <prompt>
          It appears you are having difficulty with your customer identification number. Please try your call again later. Goodbye.
        </prompt>
        <exit/>
      </noinput>
    </field>
  </form>
</vxml>

The output of the above script would be:

Computer: Please enter your user identification number. User: <silence: user enters nothing> (noinput x1) Computer: You did not enter any input. Please try again. Computer: Please enter your user identification number. User: <silence: user enters nothing> (noinput x2) Computer: You did not enter any input. Your user identification number is in your sign up email. Computer: Please enter your user identification number. User: <silence: user enters nothing> (noinput x3) Computer: It appears you are having difficulty with your customer identification number. Please try your call again later. Goodbye. *application hangs up*

Child Tags

<assign>, <audio>, <clear>, <data>, <disconnect>, <enumerate>, <exit>, <foreach>, <goto>, <if>, <log>, <prompt>, <reprompt>, <return>, <script>, <submit>, <throw>, <value>, <var>

Parent Tags

<field>, <form>, <initial>, <menu>, <record>, <subdialog>, <transfer>, <vxml>

Last updated