XML form should call another XML form for playing prompt msg
Posted: Wed Jul 21, 2010 4:37 am
Hi All
In the below code which is marked as red, that particular messages should come from another from, (My another form where messages are genereated from DB).
How can I call another from to play the messages in the marked place.
<form id="clockin">
<field name="clockin_customerid" type="digits">
<grammar root="ROOT" type="application/srgs+xml" mode="dtmf">
<rule id="ROOT" scope="public">
<one-of>
<item repeat="0-255">
<ruleref uri="#digit"/>
</item>
<item> "#" </item>
</one-of>
</rule>
<rule id="digit" scope="public">
<one-of>
<item> 0 </item>
<item> 1 </item>
<item> 2 </item>
<item> 3 </item>
<item> 4 </item>
<item> 5 </item>
<item> 6 </item>
<item> 7 </item>
<item> 8 </item>
<item> 9 </item>
<item> "#" </item>
</one-of>
</rule>
</grammar>
<prompt>
You have selected for Clock In.
</prompt>
<prompt>
Enter your Four digit Client ID and press Hash to Submit.
</prompt>
<filled>
<if cond="clockin_customerid.indexOf('#') != -1">
<assign name="clockin_customerid" expr="clockin_customerid.toString().replace(/#/,'')"/>
<prompt>
You entered <value expr="clockin_customerid"/>. Please wait while we process your information.
</prompt>
<else/>
<prompt>
You entered <value expr="clockin_customerid"/>. You must press hash to submit your client ID.
</prompt>
</if>
</filled>
<noinput>
Sorry, No Input received.
<reprompt/>
</noinput>
<nomatch>
Sorry, Invalid Client ID.
<reprompt/>
</nomatch>
</field>
</form>
In the below code which is marked as red, that particular messages should come from another from, (My another form where messages are genereated from DB).
How can I call another from to play the messages in the marked place.
<form id="clockin">
<field name="clockin_customerid" type="digits">
<grammar root="ROOT" type="application/srgs+xml" mode="dtmf">
<rule id="ROOT" scope="public">
<one-of>
<item repeat="0-255">
<ruleref uri="#digit"/>
</item>
<item> "#" </item>
</one-of>
</rule>
<rule id="digit" scope="public">
<one-of>
<item> 0 </item>
<item> 1 </item>
<item> 2 </item>
<item> 3 </item>
<item> 4 </item>
<item> 5 </item>
<item> 6 </item>
<item> 7 </item>
<item> 8 </item>
<item> 9 </item>
<item> "#" </item>
</one-of>
</rule>
</grammar>
<prompt>
You have selected for Clock In.
</prompt>
<prompt>
Enter your Four digit Client ID and press Hash to Submit.
</prompt>
<filled>
<if cond="clockin_customerid.indexOf('#') != -1">
<assign name="clockin_customerid" expr="clockin_customerid.toString().replace(/#/,'')"/>
<prompt>
You entered <value expr="clockin_customerid"/>. Please wait while we process your information.
</prompt>
<else/>
<prompt>
You entered <value expr="clockin_customerid"/>. You must press hash to submit your client ID.
</prompt>
</if>
</filled>
<noinput>
Sorry, No Input received.
<reprompt/>
</noinput>
<nomatch>
Sorry, Invalid Client ID.
<reprompt/>
</nomatch>
</field>
</form>