Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <h:html xmlns="http://www.w3.org/2002/xforms" xmlns:h="http://www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:jr="http://openrosa.org/javarosa">
- <h:head>
- <h:title>Test Telephone</h:title>
- <model>
- <instance>
- <data id="TestTel">
- <start/>
- <end/>
- <deviceid/>
- <subscriberid/>
- <simid/>
- <Tel1/>
- <Tel2/>
- </data>
- </instance>
- <itext>
- <translation lang="eng">
- <text id="/data/Tel1:label">
- <value>Contact Telephone Number</value>
- </text>
- <text id="/data/Tel1:hint">
- <value/>
- </text>
- <text id="/data/Tel2:label">
- <value>Contact Telephone Number</value>
- </text>
- <text id="/data/Tel2:hint">
- <value/>
- </text>
- </translation>
- </itext>
- <bind nodeset="/data/start" type="dateTime" jr:preload="timestamp" jr:preloadParams="start"/>
- <bind nodeset="/data/end" type="dateTime" jr:preload="timestamp" jr:preloadParams="end"/>
- <bind nodeset="/data/deviceid" type="string" jr:preload="property" jr:preloadParams="deviceid"/>
- <bind nodeset="/data/subscriberid" type="string" jr:preload="property" jr:preloadParams="subscriberid"/>
- <bind nodeset="/data/simid" type="string" jr:preload="property" jr:preloadParams="simserial"/>
- <bind nodeset="/data/Tel1" type="int" required="true()" constraint="regex(^[0-9]{1}[0-9]{9})$" jr:constraintMsg="Tel Number must be 10 digits long"/>
- <bind nodeset="/data/Tel2" type="string" required="true()" constraint="regex(., '^[0-9]{10}$')'" jr:constraintMsg="Tel Number must be 10 digits long"/>
- </model>
- </h:head>
- <h:body>
- <group appearance="field-list">
- <input ref="/data/Tel1" appearance="number">
- <label ref="jr:itext('/data/Tel1:label')"/>
- <hint ref="jr:itext('/data/Tel1:hint')"/>
- </input>
- <input appearance="number" ref="/data/Tel2">
- <label ref="jr:itext('/data/Tel2:label')"/>
- <hint ref="jr:itext('/data/Tel2:hint')"/>
- </input>
- </group>
- </h:body>
- </h:html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement