no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | developer_guide:voicexml_references:elements:initial [2015/10/27 12:57] (current) – created borja | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== < initial > ====== | ||
+ | ===== Description ===== | ||
+ | |||
+ | The < initial > element declares initial logic upon entry into a mixed-initiative form. | ||
+ | Unlike < field >, < initial > has no grammars and no < filled > action. | ||
+ | |||
+ | ===== Syntax ===== | ||
+ | |||
+ | < | ||
+ | <initial | ||
+ | name=" | ||
+ | expr=" | ||
+ | cond=" | ||
+ | child elements | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ===== Attributes ===== | ||
+ | |||
+ | |name|The name attribute represents the name of form item variable used. Use this variable if you want to explicitly control the < | ||
+ | |expr|The expr attribute is the initial value of the form item variable. | ||
+ | |cond|The cond attribute is a Boolean condition that must evaluate to true in order for the < | ||
+ | |||
+ | ===== Parents ===== | ||
+ | |||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | |||
+ | ===== Children ===== | ||
+ | |||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | |||
+ | ===== Extensions ===== | ||
+ | |||
+ | < | ||
+ | None. | ||
+ | </ | ||
+ | |||
+ | ===== Limitations/ | ||
+ | |||
+ | < | ||
+ | None. | ||
+ | </ | ||
+ | |||
+ | ===== Example Code ===== | ||
+ | |||
+ | < | ||
+ | <?xml version=" | ||
+ | <vxml version=" | ||
+ | < | ||
+ | <grammar type=" | ||
+ | 1 {uno} | | ||
+ | 2 {dos} | | ||
+ | 3 {tres} | | ||
+ | 4 {cuatro} | | ||
+ | 5 {cinco} | ||
+ | </ | ||
+ | < | ||
+ | | ||
+ | </ | ||
+ | <initial name=" | ||
+ | < | ||
+ | < | ||
+ | Please say something like this, | ||
+ | "1 2 2 3 4". | ||
+ | </ | ||
+ | < | ||
+ | I'm sorry, I still don't understand. | ||
+ | I'll ask you for information one piece at a time. | ||
+ | <assign name=" | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | <field name=" | ||
+ | < | ||
+ | </ | ||
+ | <field name=" | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | You said that you wanted <value expr=" | ||
+ | <value expr=" | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | </ |