|
Newsletters
|
|
|
|
|
Voice XML Reference
Voice XML Reference
Bookmark this page
The filled Element - <filled>
Description: The filled element specifies an action to perform when some combination of fields are filled by user input. It may occur in two places: as a child of the <form> element, or as a child of a field item. As a child of a <form> element, the <filled> element can be used to perform actions that occur when a combination of one or more fields is filled.
Example:
<form id="get_starting_and_ending_cities">
<field name="start_city">
<grammar src="http://www.grammars.example/voicexml/city.gram"/>
<prompt>What is the starting city?</prompt>
</field>
<field name="end_city">
<grammar src="http://www.grammars.example/voicexml/city.gram"/>
<prompt>What is the ending city?</prompt>
</field>
<filled mode="any" namelist="start_city end_city">
<if cond="start_city == end_city">
<prompt>You can't fly from and to the same city.</prompt>
<clear/>
</if>
</filled>
</form>
| Attributes |
| Name |
Value |
Description |
| mode |
"all" or "any" |
Either "all" (default) or "any". If "any", this action is executed when any of the specified fields is filled by the last user input. If "all", this action is executed when all of the mentioned fields are filled, and at least one has been filled by the last user input. A <filled> element in a field item cannot specify a mode. |
| namelist |
PCDATA |
The fields to trigger on. For a <filled> in a form, namelist defaults to the names (explicit and implicit) of the form's field items. A <filled> element in a field item cannot specify a namelist; the namelist in this case is the field item name. |
Back to Tag Listing
|
|