ZVON > References > VoiceXML Reference
Element:param
Attributes: | expr | name | type | value | valuetype |
Parents: | object | subdialog |
Description:

Go to Standard

Examples:


<object name="debit" classid="method://credit_card/gather_and_debit" data="http://www.recordings.example/prompts/credit/jesse.jar">
     <param name="amount" expr="document.amt"/>
     <param name="vendor" expr="vendor_num"/>
</object>


<object name="debit" classid="method://credit_card/gather_and_debit" data="http://www.recordings.example/prompts/credit/jesse.jar">
     <param name="amount" expr="document.amt"/>
     <param name="vendor" expr="vendor_num"/>
     <param name="application_id" value="ADC5678-QWOO"/>
     <param name="authentication_server" value="http://auth_svr.example" valuetype="ref" type="text/plain"/>
</object>


<form>
     <subdialog name="result" src="http://another.example/#getssn">
          <param name="firstname" expr="document.first"/>
          <param name="lastname" expr="document.last"/>
          <filled>
               <submit namelist="result.ssn" next="http://myservice.example/cgi-bin/process"/>
          </filled>
     </subdialog>
</form>


<form>
     <subdialog name="result" src="#getdriverslicense">
          <param name="birthday" expr="'2000-02-10'"/>
          <filled>
               <submit next="http://myservice.example/cgi-bin/process"/>
          </filled>
     </subdialog>
</form>
<form id="getdriverslicense">
     <var name="birthday"/>
     <field name="drivelicense">
          <grammar src="http://grammarlib/drivegrammar.gram" type="application/x-jsgf"/>
          <prompt> Please say your driver's license. </prompt>
          <filled>
               <if cond="validdrivelicense(drivelicense,birthday)">
                    <var name="status" expr="true"/>
                    <else/>
                    <var name="status" expr="false"/>
               </if>
               <return namelist="drivelicense status"/>
          </filled>
     </field>
</form>