Skip to content

Instantly share code, notes, and snippets.

@MartijnR
Created February 12, 2020 21:44
Show Gist options
  • Save MartijnR/cf956957a4262cf5ccfc2adcd539466b to your computer and use it in GitHub Desktop.
Save MartijnR/cf956957a4262cf5ccfc2adcd539466b to your computer and use it in GitHub Desktop.
readonly month-year and year fields
<?xml version="1.0"?>
<h:html xmlns="http://www.w3.org/2002/xforms"
xmlns:ev="http://www.w3.org/2001/xml-events"
xmlns:h="http://www.w3.org/1999/xhtml"
xmlns:jr="http://openrosa.org/javarosa"
xmlns:oc="http://openclinica.org/xforms"
xmlns:orx="http://openrosa.org/xforms"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<h:head>
<h:title>Widgets</h:title>
<model>
<itext>
<translation default="true()" lang="default">
<text id="/widgets/display_widgets/select_media/king:label">
<value form="image">jr://images/kingfisher.png</value>
<value form="big-image">jr://images/big-kingfisher.png</value>
<value>kingfisher</value>
</text>
<text id="static_instance-state-2">
<value>Alabama</value>
</text>
<text id="static_instance-list-0">
<value>option a</value>
</text>
<text id="static_instance-state-9">
<value>Florida</value>
</text>
<text id="static_instance-state-18">
<value>Maryland</value>
</text>
<text id="static_instance-state-46">
<value>West Virgina</value>
</text>
<text id="static_instance-state-7">
<value>Connecticut</value>
</text>
<text id="/widgets/display_widgets/text_media:label">
<value form="audio">jr://audio/goldeneagle.mp3</value>
<value>You can add a sound recording, an image and a video to any input label or to a note.</value>
</text>
<text id="static_instance-neighborhoods-3">
<value>Westerpark</value>
</text>
<text id="static_instance-state-38">
<value>South Dakota</value>
</text>
<text id="static_instance-countries-0">
<value>The Netherlands</value>
</text>
<text id="static_instance-state-23">
<value>Mississippi</value>
</text>
<text id="static_instance-state-43">
<value>Vermont</value>
</text>
<text id="static_instance-list-2">
<value>option c</value>
</text>
<text id="/widgets/select_widgets/grid_2_columns/d:label">
<value form="image">jr://images/d.jpg</value>
</text>
<text id="static_instance-state-1">
<value>Hawaii</value>
</text>
<text id="static_instance-state-26">
<value>North Dakota</value>
</text>
<text id="static_instance-state-39">
<value>Tenessee</value>
</text>
<text id="static_instance-state-16">
<value>Louisiana</value>
</text>
<text id="static_instance-state-6">
<value>Colorado</value>
</text>
<text id="static_instance-agree5-4">
<value>strongly agree</value>
</text>
<text id="/widgets/select_widgets/select1_autocomplete/pig:label">
<value form="image">jr://images/pigeon.png</value>
<value>pigeon</value>
</text>
<text id="static_instance-list1-0">
<value form="image">jr://images/kingfisher.png</value>
<value>kingfisher</value>
</text>
<text id="static_instance-state-31">
<value>Nevada</value>
</text>
<text id="/widgets/select_widgets/grid_2_columns/c:label">
<value form="image">jr://images/c.jpg</value>
</text>
<text id="static_instance-a_b-1">
<value form="image">jr://images/b.jpg</value>
</text>
<text id="/widgets/select_widgets/select1_autocomplete/king:label">
<value form="image">jr://images/kingfisher.png</value>
<value>kingfisher birdiebird</value>
</text>
<text id="static_instance-state-48">
<value>District Capital</value>
</text>
<text id="static_instance-state-0">
<value>Alaska</value>
</text>
<text id="/widgets/select_widgets/select1_image-map:label">
<value form="image">data:text/svg;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI5NTkiIGhlaWdodD0iNTkzIiB2aWV3Qm94PSIwIDAgOTI3IDU4NiI+DQo8dGl0bGU+QmxhbmsgVVMgc3RhdGVzIG1hcDwvdGl0bGU+DQo8Zz4NCiAgPHBhdGggZmlsbD0icGluayIgaWQ9IkNPIiBkPSJNMzgwLjIsMjM1LjUgbC0zNiwtMy41IC03OS4xLC04LjYgLTIuMiwyMi4xIC03LDUwLjQgLTEuOSwxMy43IDM0LDMuOSAzNy41LDQuNCAzNC43LDMgMTQuMywwLjZ6Ij48L3BhdGg+ICANCjwvZz4NCjxwYXRoIGZpbGw9Im5vbmUiIHN0cm9rZT0iI0E5QTlBOSIgc3Ryb2tlLXdpZHRoPSIyIiBkPSJNMjE1LDQ5M3Y1NWwzNiw0NSBNMCw0MjVoMTQ3bDY4LDY4aDg1bDU0LDU0djQ2Ij48L3BhdGg+DQo8L3N2Zz4=</value>
<value>Select a state from the image</value>
</text>
<text id="static_instance-state-36">
<value>Pennsylvania</value>
</text>
<text id="/widgets/select_widgets/happy_sad_table_2/happy_sad_michael2/sad:label">
<value form="image">jr://images/sad.jpg</value>
</text>
<text id="/widgets/select_widgets/happy_sad_table/happy_sad_brian/sad:label">
<value form="image">jr://images/sad.jpg</value>
</text>
<text id="static_instance-state-35">
<value>Oregon</value>
</text>
<text id="static_instance-list2-0">
<value>option 1</value>
</text>
<text id="static_instance-state-13">
<value>Ilinois</value>
</text>
<text id="static_instance-state-34">
<value>Oklahoma</value>
</text>
<text id="static_instance-state-17">
<value>Massachusetts</value>
</text>
<text id="static_instance-yes_no-2">
<value>Don't Know</value>
</text>
<text id="static_instance-state-5">
<value>California</value>
</text>
<text id="static_instance-cities-0">
<value>Amsterdam</value>
</text>
<text id="static_instance-a_b_c_d-0">
<value form="image">jr://images/a.jpg</value>
</text>
<text id="static_instance-countries-1">
<value>United States</value>
</text>
<text id="static_instance-cities-2">
<value>New York City</value>
</text>
<text id="/widgets/select_widgets/happy_sad_table_2/happy_sad_second_method/sad:label">
<value form="image">jr://images/sad.jpg</value>
</text>
<text id="static_instance-list1-2">
<value form="image">jr://images/nuthatch.png</value>
<value>nuthatch</value>
</text>
<text id="static_instance-agree5-3">
<value>agree</value>
</text>
<text id="static_instance-state-8">
<value>Delaware</value>
</text>
<text id="static_instance-cities-5">
<value>Dronten</value>
</text>
<text id="static_instance-agree5-0">
<value>strongly disagree</value>
</text>
<text id="static_instance-neighborhoods-6">
<value>Dam</value>
</text>
<text id="static_instance-state-30">
<value>New Mexico</value>
</text>
<text id="static_instance-state-11">
<value>Iowa</value>
</text>
<text id="/widgets/select_widgets/happy_sad_table_2/happy_sad_second_method/happy:label">
<value form="image">jr://images/happy.jpg</value>
</text>
<text id="static_instance-state-29">
<value>New Jersey</value>
</text>
<text id="/widgets/select_widgets/select1_autocomplete/nut:label">
<value form="image">jr://images/nuthatch.png</value>
<value>nuthatch</value>
</text>
<text id="static_instance-a_b_c_d-1">
<value form="image">jr://images/b.jpg</value>
</text>
<text id="/widgets/select_widgets/grid_test/b:label">
<value form="image">jr://images/b.jpg</value>
</text>
<text id="static_instance-list-3">
<value>option d</value>
</text>
<text id="/widgets/select_widgets/happy_sad_table/reserved_name_for_field_list_labels_51/sad:label">
<value form="image">jr://images/sad.jpg</value>
</text>
<text id="static_instance-state-19">
<value>Maine</value>
</text>
<text id="static_instance-neighborhoods-4">
<value>Park Hill</value>
</text>
<text id="static_instance-state-42">
<value>Virginia</value>
</text>
<text id="/widgets/select_widgets/happy_sad_table/happy_sad_michael/sad:label">
<value form="image">jr://images/sad.jpg</value>
</text>
<text id="static_instance-list2-3">
<value>option 4</value>
</text>
<text id="static_instance-cities-3">
<value>Los Angeles</value>
</text>
<text id="static_instance-agree5-1">
<value>disagree</value>
</text>
<text id="static_instance-state-12">
<value>Idaho</value>
</text>
<text id="static_instance-state-22">
<value>Missouri</value>
</text>
<text id="/widgets/select_widgets/happy_sad_table_2/happy_sad_brian2/happy:label">
<value form="image">jr://images/happy.jpg</value>
</text>
<text id="static_instance-neighborhoods-2">
<value>Bel Air</value>
</text>
<text id="static_instance-state-44">
<value>Washington</value>
</text>
<text id="static_instance-state-10">
<value>Georgia</value>
</text>
<text id="static_instance-list2-4">
<value>option 5</value>
</text>
<text id="static_instance-state-40">
<value>Texas</value>
</text>
<text id="static_instance-list1-1">
<value form="image">jr://images/pigeon.png</value>
<value>pigeon</value>
</text>
<text id="/widgets/display_widgets/select_media/pig:label">
<value form="image">jr://images/pigeon.png</value>
<value>pigeon</value>
</text>
<text id="static_instance-state-14">
<value>Indiana</value>
</text>
<text id="/widgets/select_widgets/grid_2_columns/a:label">
<value form="image">jr://images/a.jpg</value>
</text>
<text id="static_instance-yes_no-3">
<value>Not Applicable</value>
</text>
<text id="static_instance-state-21">
<value>Minnesota</value>
</text>
<text id="static_instance-neighborhoods-7">
<value>Downtown</value>
</text>
<text id="static_instance-list2-7">
<value>option 8</value>
</text>
<text id="static_instance-state-20">
<value>Michigan</value>
</text>
<text id="static_instance-state-24">
<value>Montana</value>
</text>
<text id="static_instance-yes_no-0">
<value>Yes</value>
</text>
<text id="/widgets/select_widgets/grid_test/a:label">
<value form="image">jr://images/a.jpg</value>
</text>
<text id="/widgets/select_widgets/grid_2_columns/b:label">
<value form="image">jr://images/b.jpg</value>
</text>
<text id="static_instance-state-25">
<value>North Carolina</value>
</text>
<text id="static_instance-list-1">
<value>option b</value>
</text>
<text id="static_instance-state-45">
<value>Wisconsin</value>
</text>
<text id="static_instance-state-15">
<value>Kansas</value>
</text>
<text id="static_instance-yes_no-1">
<value>No</value>
</text>
<text id="static_instance-neighborhoods-1">
<value>Harlem</value>
</text>
<text id="/widgets/select_widgets/select_image-map:label">
<value form="image">/US_MAP.svg</value>
<value>Select states from the image</value>
</text>
<text id="static_instance-agree5-2">
<value>neither agree nor disagree</value>
</text>
<text id="static_instance-cities-1">
<value>Denver</value>
</text>
<text id="static_instance-a_b_c_d-2">
<value form="image">jr://images/c.jpg</value>
</text>
<text id="static_instance-list2-1">
<value>option 2</value>
</text>
<text id="static_instance-list2-5">
<value>option 6</value>
</text>
<text id="static_instance-list2-2">
<value>option 3</value>
</text>
<text id="static_instance-neighborhoods-5">
<value>Harbor</value>
</text>
<text id="static_instance-state-33">
<value>Ohio</value>
</text>
<text id="/widgets/select_widgets/happy_sad_table/happy_sad_michael/happy:label">
<value form="image">jr://images/happy.jpg</value>
</text>
<text id="static_instance-state-28">
<value>New Hampshire</value>
</text>
<text id="static_instance-a_b-0">
<value form="image">jr://images/a.jpg</value>
</text>
<text id="/widgets/select_widgets/happy_sad_table/reserved_name_for_field_list_labels_51/happy:label">
<value form="image">jr://images/happy.jpg</value>
</text>
<text id="static_instance-neighborhoods-8">
<value>Harbor</value>
</text>
<text id="static_instance-cities-4">
<value>Rotterdam</value>
</text>
<text id="/widgets/select_widgets/happy_sad_table_2/happy_sad_brian2/sad:label">
<value form="image">jr://images/sad.jpg</value>
</text>
<text id="static_instance-state-27">
<value>Nebraska</value>
</text>
<text id="static_instance-happy_sad-0">
<value form="image">jr://images/happy.jpg</value>
</text>
<text id="static_instance-state-47">
<value>Wyoming</value>
</text>
<text id="/widgets/select_widgets/happy_sad_table/happy_sad_brian/happy:label">
<value form="image">jr://images/happy.jpg</value>
</text>
<text id="/widgets/display_widgets/select_media/nut:label">
<value form="image">jr://images/nuthatch.png</value>
<value>nuthatch</value>
</text>
<text id="static_instance-state-4">
<value>Arizona</value>
</text>
<text id="static_instance-state-3">
<value>Arkansas</value>
</text>
<text id="static_instance-state-37">
<value>South Carolina</value>
</text>
<text id="/widgets/select_widgets/happy_sad_table_2/happy_sad_michael2/happy:label">
<value form="image">jr://images/happy.jpg</value>
</text>
<text id="static_instance-list2-6">
<value>option 7</value>
</text>
<text id="static_instance-state-41">
<value>Utah</value>
</text>
<text id="static_instance-a_b_c_d-3">
<value form="image">jr://images/d.jpg</value>
</text>
<text id="static_instance-happy_sad-1">
<value form="image">jr://images/sad.jpg</value>
</text>
<text id="static_instance-state-32">
<value>New York</value>
</text>
<text id="static_instance-neighborhoods-0">
<value>Bronx</value>
</text>
</translation>
</itext>
<instance>
<widgets id="widgets">
<intro/>
<text_widgets>
<text>This is a default value</text>
<phone></phone>
<long_text/>
<my_barcode/>
</text_widgets>
<number_widgets>
<int>3000</int>
<decimal>18.31</decimal>
<s/>
</number_widgets>
<date_time_widgets>
<date>2017-02-10</date>
<date_month_year>2017-02-01</date_month_year>
<date_year>2017-02-01</date_year>
<time>23:23:12.000-03:00</time>
<datetime>2016-08-25T13:00:00.000-02:00</datetime>
</date_time_widgets>
<select_widgets>
<select>a c</select>
<select_horizontal_compact/>
<select_horizontal/>
<select_spinner>a</select_spinner>
<select_image-map/>
<select1>8</select1>
<select1_horizontal_compact/>
<select1_horizontal/>
<select1_likert/>
<select1_spinner>a</select1_spinner>
<select1_autocomplete/>
<select1_image-map/>
<grid_test/>
<grid_2_columns/>
<table_list_test>
<table_list_test_label/>
<table_list_1/>
<table_list_2/>
</table_list_test>
<table_list_test2>
<generated_table_list_label_41/>
<reserved_name_for_field_list_labels_42/>
<table_list_3/>
<table_list_4/>
</table_list_test2>
<happy_sad_table_2>
<happy_sad_second_method/>
<happy_sad_brian2/>
<happy_sad_michael2/>
</happy_sad_table_2>
<happy_sad_table>
<generated_table_list_label_50/>
<reserved_name_for_field_list_labels_51/>
<happy_sad_brian/>
<happy_sad_michael/>
</happy_sad_table>
</select_widgets>
<cascading_widgets>
<group1>
<country/>
<city/>
<neighborhood/>
</group1>
<group2>
<country2/>
<city2/>
<neighborhood2/>
</group2>
</cascading_widgets>
<geopoint_widgets>
<geopoint>47.07100546 -120.1561422 0 0</geopoint>
<geopoint_m/>
<geopoint_hide/>
<geotrace/>
<geoshape>7.9377 -11.5845 0 0;7.9324 -11.5902 0 0;7.927 -11.5857 0 0;7.925 -11.578 0 0;7.9267 -11.5722 0 0;7.9325 -11.5708 0 0;7.9372 -11.5737 0 0;7.9393 -11.579 0 0;7.9377 -11.5845 0 0</geoshape>
</geopoint_widgets>
<media_widgets>
<image>logo.png</image>
<draw></draw>
<signature></signature>
<annotate/>
<my_audio/>
<my_video/>
</media_widgets>
<display_widgets>
<my_output/>
<text_media/>
<select_media/>
<my_trigger/>
</display_widgets>
<meta>
<instanceID/>
</meta>
</widgets>
</instance>
<instance id="happy_sad">
<root>
<item>
<itextId>static_instance-happy_sad-0</itextId>
<name>happy</name>
</item>
<item>
<itextId>static_instance-happy_sad-1</itextId>
<name>sad</name>
</item>
</root>
</instance>
<instance id="yes_no">
<root>
<item>
<itextId>static_instance-yes_no-0</itextId>
<name>yes</name>
</item>
<item>
<itextId>static_instance-yes_no-1</itextId>
<name>no</name>
</item>
<item>
<itextId>static_instance-yes_no-2</itextId>
<name>dk</name>
</item>
<item>
<itextId>static_instance-yes_no-3</itextId>
<name>na</name>
</item>
</root>
</instance>
<instance id="list2">
<root>
<item>
<itextId>static_instance-list2-0</itextId>
<name>1</name>
</item>
<item>
<itextId>static_instance-list2-1</itextId>
<name>2</name>
</item>
<item>
<itextId>static_instance-list2-2</itextId>
<name>3</name>
</item>
<item>
<itextId>static_instance-list2-3</itextId>
<name>4</name>
</item>
<item>
<itextId>static_instance-list2-4</itextId>
<name>5</name>
</item>
<item>
<itextId>static_instance-list2-5</itextId>
<name>6</name>
</item>
<item>
<itextId>static_instance-list2-6</itextId>
<name>7</name>
</item>
<item>
<itextId>static_instance-list2-7</itextId>
<name>8</name>
</item>
</root>
</instance>
<instance id="list1">
<root>
<item>
<itextId>static_instance-list1-0</itextId>
<name>king</name>
</item>
<item>
<itextId>static_instance-list1-1</itextId>
<name>pig</name>
</item>
<item>
<itextId>static_instance-list1-2</itextId>
<name>nut</name>
</item>
</root>
</instance>
<instance id="a_b">
<root>
<item>
<itextId>static_instance-a_b-0</itextId>
<name>a</name>
</item>
<item>
<itextId>static_instance-a_b-1</itextId>
<name>b</name>
</item>
</root>
</instance>
<instance id="neighborhoods">
<root>
<item>
<itextId>static_instance-neighborhoods-0</itextId>
<name>bronx</name>
<country>usa</country>
<city>nyc</city>
</item>
<item>
<itextId>static_instance-neighborhoods-1</itextId>
<name>harlem</name>
<country>usa</country>
<city>nyc</city>
</item>
<item>
<itextId>static_instance-neighborhoods-2</itextId>
<name>belair</name>
<country>usa</country>
<city>la</city>
</item>
<item>
<itextId>static_instance-neighborhoods-3</itextId>
<name>wes</name>
<country>nl</country>
<city>ams</city>
</item>
<item>
<itextId>static_instance-neighborhoods-4</itextId>
<name>parkhill</name>
<country>usa</country>
<city>den</city>
</item>
<item>
<itextId>static_instance-neighborhoods-5</itextId>
<name>haven</name>
<country>nl</country>
<city>rot</city>
</item>
<item>
<itextId>static_instance-neighborhoods-6</itextId>
<name>dam</name>
<country>nl</country>
<city>ams</city>
</item>
<item>
<itextId>static_instance-neighborhoods-7</itextId>
<name>centrum</name>
<country>nl</country>
<city>rot</city>
</item>
<item>
<itextId>static_instance-neighborhoods-8</itextId>
<name>haven</name>
<country>nl</country>
<city>dro</city>
</item>
</root>
</instance>
<instance id="countries">
<root>
<item>
<itextId>static_instance-countries-0</itextId>
<name>nl</name>
</item>
<item>
<itextId>static_instance-countries-1</itextId>
<name>usa</name>
</item>
</root>
</instance>
<instance id="cities">
<root>
<item>
<itextId>static_instance-cities-0</itextId>
<country>nl</country>
<name>ams</name>
</item>
<item>
<itextId>static_instance-cities-1</itextId>
<country>usa</country>
<name>den</name>
</item>
<item>
<itextId>static_instance-cities-2</itextId>
<country>usa</country>
<name>nyc</name>
</item>
<item>
<itextId>static_instance-cities-3</itextId>
<country>usa</country>
<name>la</name>
</item>
<item>
<itextId>static_instance-cities-4</itextId>
<country>nl</country>
<name>rot</name>
</item>
<item>
<itextId>static_instance-cities-5</itextId>
<country>nl</country>
<name>dro</name>
</item>
</root>
</instance>
<instance id="state">
<root>
<item>
<itextId>static_instance-state-0</itextId>
<name>AK</name>
</item>
<item>
<itextId>static_instance-state-1</itextId>
<name>HI</name>
</item>
<item>
<itextId>static_instance-state-2</itextId>
<name>AL</name>
</item>
<item>
<itextId>static_instance-state-3</itextId>
<name>AR</name>
</item>
<item>
<itextId>static_instance-state-4</itextId>
<name>AZ</name>
</item>
<item>
<itextId>static_instance-state-5</itextId>
<name>CA</name>
</item>
<item>
<itextId>static_instance-state-6</itextId>
<name>CO</name>
</item>
<item>
<itextId>static_instance-state-7</itextId>
<name>CT</name>
</item>
<item>
<itextId>static_instance-state-8</itextId>
<name>DE</name>
</item>
<item>
<itextId>static_instance-state-9</itextId>
<name>FL</name>
</item>
<item>
<itextId>static_instance-state-10</itextId>
<name>GA</name>
</item>
<item>
<itextId>static_instance-state-11</itextId>
<name>IA</name>
</item>
<item>
<itextId>static_instance-state-12</itextId>
<name>ID</name>
</item>
<item>
<itextId>static_instance-state-13</itextId>
<name>IL</name>
</item>
<item>
<itextId>static_instance-state-14</itextId>
<name>IN</name>
</item>
<item>
<itextId>static_instance-state-15</itextId>
<name>KS</name>
</item>
<item>
<itextId>static_instance-state-16</itextId>
<name>LA</name>
</item>
<item>
<itextId>static_instance-state-17</itextId>
<name>MA</name>
</item>
<item>
<itextId>static_instance-state-18</itextId>
<name>MD</name>
</item>
<item>
<itextId>static_instance-state-19</itextId>
<name>ME</name>
</item>
<item>
<itextId>static_instance-state-20</itextId>
<name>MI</name>
</item>
<item>
<itextId>static_instance-state-21</itextId>
<name>MN</name>
</item>
<item>
<itextId>static_instance-state-22</itextId>
<name>MO</name>
</item>
<item>
<itextId>static_instance-state-23</itextId>
<name>MS</name>
</item>
<item>
<itextId>static_instance-state-24</itextId>
<name>MT</name>
</item>
<item>
<itextId>static_instance-state-25</itextId>
<name>NC</name>
</item>
<item>
<itextId>static_instance-state-26</itextId>
<name>ND</name>
</item>
<item>
<itextId>static_instance-state-27</itextId>
<name>NE</name>
</item>
<item>
<itextId>static_instance-state-28</itextId>
<name>NH</name>
</item>
<item>
<itextId>static_instance-state-29</itextId>
<name>NJ</name>
</item>
<item>
<itextId>static_instance-state-30</itextId>
<name>NM</name>
</item>
<item>
<itextId>static_instance-state-31</itextId>
<name>NV</name>
</item>
<item>
<itextId>static_instance-state-32</itextId>
<name>NY</name>
</item>
<item>
<itextId>static_instance-state-33</itextId>
<name>OH</name>
</item>
<item>
<itextId>static_instance-state-34</itextId>
<name>OK</name>
</item>
<item>
<itextId>static_instance-state-35</itextId>
<name>OR</name>
</item>
<item>
<itextId>static_instance-state-36</itextId>
<name>PA</name>
</item>
<item>
<itextId>static_instance-state-37</itextId>
<name>SC</name>
</item>
<item>
<itextId>static_instance-state-38</itextId>
<name>SD</name>
</item>
<item>
<itextId>static_instance-state-39</itextId>
<name>TN</name>
</item>
<item>
<itextId>static_instance-state-40</itextId>
<name>TX</name>
</item>
<item>
<itextId>static_instance-state-41</itextId>
<name>UT</name>
</item>
<item>
<itextId>static_instance-state-42</itextId>
<name>VA</name>
</item>
<item>
<itextId>static_instance-state-43</itextId>
<name>VT</name>
</item>
<item>
<itextId>static_instance-state-44</itextId>
<name>WA</name>
</item>
<item>
<itextId>static_instance-state-45</itextId>
<name>WI</name>
</item>
<item>
<itextId>static_instance-state-46</itextId>
<name>WV</name>
</item>
<item>
<itextId>static_instance-state-47</itextId>
<name>WY</name>
</item>
<item>
<itextId>static_instance-state-48</itextId>
<name>DC</name>
</item>
</root>
</instance>
<instance id="list">
<root>
<item>
<itextId>static_instance-list-0</itextId>
<name>a</name>
</item>
<item>
<itextId>static_instance-list-1</itextId>
<name>b</name>
</item>
<item>
<itextId>static_instance-list-2</itextId>
<name>c</name>
</item>
<item>
<itextId>static_instance-list-3</itextId>
<name>d</name>
</item>
</root>
</instance>
<instance id="a_b_c_d">
<root>
<item>
<itextId>static_instance-a_b_c_d-0</itextId>
<name>a</name>
</item>
<item>
<itextId>static_instance-a_b_c_d-1</itextId>
<name>b</name>
</item>
<item>
<itextId>static_instance-a_b_c_d-2</itextId>
<name>c</name>
</item>
<item>
<itextId>static_instance-a_b_c_d-3</itextId>
<name>d</name>
</item>
</root>
</instance>
<instance id="agree5">
<root>
<item>
<itextId>static_instance-agree5-0</itextId>
<name>1</name>
</item>
<item>
<itextId>static_instance-agree5-1</itextId>
<name>2</name>
</item>
<item>
<itextId>static_instance-agree5-2</itextId>
<name>3</name>
</item>
<item>
<itextId>static_instance-agree5-3</itextId>
<name>4</name>
</item>
<item>
<itextId>static_instance-agree5-4</itextId>
<name>5</name>
</item>
</root>
</instance>
<bind nodeset="/widgets/intro" readonly="true()" type="string"/>
<bind nodeset="/widgets/text_widgets/text" type="string" required="true()" calculate="/widgets/date_time_widgets/datetime" />
<bind nodeset="/widgets/text_widgets/phone" type="string"/>
<bind nodeset="/widgets/text_widgets/long_text" type="string" required="string-length(//text) &gt; 0"/>
<bind nodeset="/widgets/text_widgets/my_barcode" type="barcode"/>
<bind constraint=". &lt; 10" jr:constraintMsg="number must be less than 10" nodeset="/widgets/number_widgets/int" type="int"/>
<bind constraint=". &gt; 10.51 and . &lt; 18.39" jr:constraintMsg="number must be between 10.51 and 18.39" nodeset="/widgets/number_widgets/decimal" type="decimal"/>
<bind constraint=". &gt;= 0 and . &lt;= 10" nodeset="/widgets/number_widgets/s" type="int"/>
<bind constraint=". &lt; today()" jr:constraintMsg="only past dates allowed" nodeset="/widgets/date_time_widgets/date" type="date" />
<bind nodeset="/widgets/date_time_widgets/date_month_year" type="date" readonly="true()"/>
<bind nodeset="/widgets/date_time_widgets/date_year" type="date" readonly="true()"/>
<bind nodeset="/widgets/date_time_widgets/time" type="time"/>
<bind nodeset="/widgets/date_time_widgets/datetime" type="dateTime" />
<bind constraint="not(selected(., 'c') and selected(., 'd'))" jr:constraintMsg="option c and d cannot be selected together" nodeset="/widgets/select_widgets/select" type="select"/>
<bind nodeset="/widgets/select_widgets/select_horizontal_compact" type="select" calculate="/widgets/text_widgets/text"/>
<bind nodeset="/widgets/select_widgets/select_horizontal" type="select"/>
<bind nodeset="/widgets/select_widgets/select_spinner" type="select" readonly="true()"/>
<bind nodeset="/widgets/select_widgets/select_image-map" type="select"/>
<bind nodeset="/widgets/select_widgets/select1" type="select1" calculate="/widgets/text_widgets/text"/>
<bind nodeset="/widgets/select_widgets/select1_horizontal_compact" type="select1"/>
<bind nodeset="/widgets/select_widgets/select1_horizontal" type="select1"/>
<bind nodeset="/widgets/select_widgets/select1_likert" type="select1"/>
<bind nodeset="/widgets/select_widgets/select1_spinner" type="select1" />
<bind nodeset="/widgets/select_widgets/select1_autocomplete" type="select1" required="true()"/>
<bind nodeset="/widgets/select_widgets/select1_image-map" type="select1" calculate="/widgets/text_widgets/phone"/>
<bind nodeset="/widgets/select_widgets/grid_test" type="select1"/>
<bind nodeset="/widgets/select_widgets/grid_2_columns" type="select1"/>
<bind nodeset="/widgets/select_widgets/table_list_test/table_list_test_label" type="select1"/>
<bind nodeset="/widgets/select_widgets/table_list_test/table_list_1" type="select1"/>
<bind nodeset="/widgets/select_widgets/table_list_test/table_list_2" type="select1"/>
<bind nodeset="/widgets/select_widgets/table_list_test2/generated_table_list_label_41" readonly="true()" type="string"/>
<bind nodeset="/widgets/select_widgets/table_list_test2/reserved_name_for_field_list_labels_42" type="select1"/>
<bind nodeset="/widgets/select_widgets/table_list_test2/table_list_3" type="select1"/>
<bind nodeset="/widgets/select_widgets/table_list_test2/table_list_4" type="select1"/>
<bind nodeset="/widgets/select_widgets/happy_sad_table_2/happy_sad_second_method" type="select"/>
<bind nodeset="/widgets/select_widgets/happy_sad_table_2/happy_sad_brian2" type="select"/>
<bind nodeset="/widgets/select_widgets/happy_sad_table_2/happy_sad_michael2" type="select"/>
<bind nodeset="/widgets/select_widgets/happy_sad_table/generated_table_list_label_50" readonly="true()" type="string"/>
<bind nodeset="/widgets/select_widgets/happy_sad_table/reserved_name_for_field_list_labels_51" type="select"/>
<bind nodeset="/widgets/select_widgets/happy_sad_table/happy_sad_brian" type="select"/>
<bind nodeset="/widgets/select_widgets/happy_sad_table/happy_sad_michael" type="select"/>
<bind nodeset="/widgets/cascading_widgets/group1/country" type="select1"/>
<bind nodeset="/widgets/cascading_widgets/group1/city" type="select1"/>
<bind nodeset="/widgets/cascading_widgets/group1/neighborhood" type="select1"/>
<bind nodeset="/widgets/cascading_widgets/group2/country2" type="select1"/>
<bind nodeset="/widgets/cascading_widgets/group2/city2" type="select1"/>
<bind nodeset="/widgets/cascading_widgets/group2/neighborhood2" type="select1"/>
<bind nodeset="/widgets/geopoint_widgets/geopoint" type="geopoint" />
<bind nodeset="/widgets/geopoint_widgets/geopoint_m" type="geopoint"/>
<bind nodeset="/widgets/geopoint_widgets/geopoint_hide" type="geopoint"/>
<bind nodeset="/widgets/geopoint_widgets/geotrace" type="geotrace" />
<bind nodeset="/widgets/geopoint_widgets/geoshape" type="geoshape" />
<bind nodeset="/widgets/media_widgets/image" type="binary" readonly="false()"/>
<bind nodeset="/widgets/media_widgets/draw" type="binary"/>
<bind nodeset="/widgets/media_widgets/signature" type="binary" />
<bind nodeset="/widgets/media_widgets/annotate" type="binary"/>
<bind nodeset="/widgets/media_widgets/my_audio" type="binary"/>
<bind nodeset="/widgets/media_widgets/my_video" type="binary"/>
<bind nodeset="/widgets/display_widgets/my_output" readonly="true()" type="string"/>
<bind nodeset="/widgets/display_widgets/text_media" type="string"/>
<bind nodeset="/widgets/display_widgets/select_media" type="select1"/>
<bind nodeset="/widgets/display_widgets/my_trigger" required="true()"/>
<bind calculate="concat('uuid:', uuid())" nodeset="/widgets/meta/instanceID" readonly="true()" type="string"/>
</model>
</h:head>
<h:body class="theme-formhub">
<input ref="/widgets/intro">
<label>This form showcases the different available _widgets_. The hints explain how these widgets were created. The form logo was added by simply uploading a file called *form_logo.png* as part of the form media.
The XLS Form source is [here](https://docs.google.com/spreadsheet/ccc?key=0Al3Mw5sknZoPdEpPa29tamFCc1o2bmFVR3RaemlSRXc&amp;usp=sharing).</label>
</input>
<group ref="/widgets/text_widgets" appearance="field-list">
<label>Text widgets</label>
<input ref="/widgets/text_widgets/text">
<label>Text widget</label>
<hint>Can be short or long but always one line (type = text)</hint>
</input>
<input appearance="numbers" ref="/widgets/text_widgets/phone">
<label>Text widget for phonenumber-like input</label>
<hint>This is a text input that will show the numbers keyboard on mobile devices (type=text, appearance=numbers)</hint>
</input>
<input appearance="multiline" ref="/widgets/text_widgets/long_text">
<label>Multiline Text widget in enketo (in ODK collect this a normal text field)</label>
<hint>Can be multiple lines (type=text, appearance=multiline)</hint>
</input>
<input ref="/widgets/text_widgets/my_barcode">
<label>Barcode widget</label>
<hint>Scans multi-format 1d/2d barcodes. In enketo it allows manual entry (type=barcode)</hint>
</input>
</group>
<group ref="/widgets/number_widgets" appearance="field-list">
<label>Number widgets</label>
<input ref="/widgets/number_widgets/int" appearance="">
<label>Integer widget (try entering a number &gt; 10)</label>
<hint>This field has a constraint (type=integer, constraint=.&lt;10)</hint>
</input>
<input ref="/widgets/number_widgets/decimal" appearance="thousands-sep">
<label>Decimal widget (allows only number &gt; 10.51 and &lt; 18.39)</label>
<hint>This field has a constraint (type=decimal, constraint=. &gt; 10.51 and . &lt; 18.39)</hint>
</input>
<range appearance="distress" ref="/widgets/number_widgets/s" end="100" start="93" step="1">
<label>Distress widget</label>
<hint>A highly specific widget to measure distress</hint>
</range>
</group>
<group ref="/widgets/date_time_widgets">
<label>Date and time widgets</label>
<input ref="/widgets/date_time_widgets/date">
<label>Date widget (this one allows only future dates and has a default value)</label>
<hint>This field has a constraint (type=date, constraint=.&gt;= today())</hint>
</input>
<input appearance="month-year" ref="/widgets/date_time_widgets/date_month_year">
<label>Month-year widget</label>
<hint>Simply specify an appearance style (type=date, appearance=month-year)</hint>
</input>
<input appearance="year" ref="/widgets/date_time_widgets/date_year">
<label>Year widget (year only)</label>
<hint>Simply specify and appearance style (type=date, appearance=year)</hint>
</input>
<input ref="/widgets/date_time_widgets/time">
<label>Time widget</label>
<hint>Times are easy! (type=time)</hint>
</input>
<input ref="/widgets/date_time_widgets/datetime">
<label>Date and time widget</label>
<hint>For exact times, will be converted to UTC/GMT (type=dateTime)</hint>
</input>
</group>
<group ref="/widgets/select_widgets">
<label>Select widgets</label>
<select ref="/widgets/select_widgets/select">
<label>Select multiple widget (don't pick c and d together)</label>
<hint>Using a list specified in the choices worksheet (type=select_multiple list)</hint>
<item>
<label>option a</label>
<value>a</value>
</item>
<item>
<label>option b</label>
<value>b</value>
</item>
<item>
<label>option c</label>
<value>c</value>
</item>
<item>
<label>option d</label>
<value>d</value>
</item>
</select>
<select appearance="horizontal-compact" ref="/widgets/select_widgets/select_horizontal_compact">
<label>Select multiple widget displaying horizontally</label>
<hint>(type = select_multiple, appearance=horizontal-compact)</hint>
<item>
<label>option a</label>
<value>a</value>
</item>
<item>
<label>option b</label>
<value>b</value>
</item>
<item>
<label>option c</label>
<value>c</value>
</item>
<item>
<label>option d</label>
<value>d</value>
</item>
</select>
<select appearance="horizontal" ref="/widgets/select_widgets/select_horizontal">
<label>Select multiple widget displaying horizontally in columns</label>
<hint>(type=select_multiple, appearance=horizontal)</hint>
<item>
<label>option 1</label>
<value>1</value>
</item>
<item>
<label>option 2</label>
<value>2</value>
</item>
<item>
<label>option 3</label>
<value>3</value>
</item>
<item>
<label>option 4</label>
<value>4</value>
</item>
<item>
<label>option 5</label>
<value>5</value>
</item>
<item>
<label>option 6</label>
<value>6</value>
</item>
<item>
<label>option 7</label>
<value>7</value>
</item>
<item>
<label>option 8</label>
<value>8</value>
</item>
</select>
<select appearance="minimal" ref="/widgets/select_widgets/select_spinner">
<label>Select multiple: pulldown</label>
<hint>Showing a pull-down list of options (type=select_multiple list, appearance=minimal)</hint>
<item>
<label>option a</label>
<value>a</value>
</item>
<item>
<label>option b</label>
<value>b</value>
</item>
<item>
<label>option c</label>
<value>c</value>
</item>
<item>
<label>option d</label>
<value>d</value>
</item>
</select>
<select appearance="image-map" ref="/widgets/select_widgets/select_image-map">
<label ref="jr:itext('/widgets/select_widgets/select_image-map:label')"/>
<hint>(type=select, appearance=image-map)</hint>
<item>
<label>Alaska</label>
<value>AK</value>
</item>
<item>
<label>Hawaii</label>
<value>HI</value>
</item>
<item>
<label>Alabama</label>
<value>AL</value>
</item>
<item>
<label>Arkansas</label>
<value>AR</value>
</item>
<item>
<label>Arizona</label>
<value>AZ</value>
</item>
<item>
<label>California</label>
<value>CA</value>
</item>
<item>
<label>Colorado</label>
<value>CO</value>
</item>
<item>
<label>Connecticut</label>
<value>CT</value>
</item>
<item>
<label>Delaware</label>
<value>DE</value>
</item>
<item>
<label>Florida</label>
<value>FL</value>
</item>
<item>
<label>Georgia</label>
<value>GA</value>
</item>
<item>
<label>Iowa</label>
<value>IA</value>
</item>
<item>
<label>Idaho</label>
<value>ID</value>
</item>
<item>
<label>Ilinois</label>
<value>IL</value>
</item>
<item>
<label>Indiana</label>
<value>IN</value>
</item>
<item>
<label>Kansas</label>
<value>KS</value>
</item>
<item>
<label>Louisiana</label>
<value>LA</value>
</item>
<item>
<label>Massachusetts</label>
<value>MA</value>
</item>
<item>
<label>Maryland</label>
<value>MD</value>
</item>
<item>
<label>Maine</label>
<value>ME</value>
</item>
<item>
<label>Michigan</label>
<value>MI</value>
</item>
<item>
<label>Minnesota</label>
<value>MN</value>
</item>
<item>
<label>Missouri</label>
<value>MO</value>
</item>
<item>
<label>Mississippi</label>
<value>MS</value>
</item>
<item>
<label>Montana</label>
<value>MT</value>
</item>
<item>
<label>North Carolina</label>
<value>NC</value>
</item>
<item>
<label>North Dakota</label>
<value>ND</value>
</item>
<item>
<label>Nebraska</label>
<value>NE</value>
</item>
<item>
<label>New Hampshire</label>
<value>NH</value>
</item>
<item>
<label>New Jersey</label>
<value>NJ</value>
</item>
<item>
<label>New Mexico</label>
<value>NM</value>
</item>
<item>
<label>Nevada</label>
<value>NV</value>
</item>
<item>
<label>New York</label>
<value>NY</value>
</item>
<item>
<label>Ohio</label>
<value>OH</value>
</item>
<item>
<label>Oklahoma</label>
<value>OK</value>
</item>
<item>
<label>Oregon</label>
<value>OR</value>
</item>
<item>
<label>Pennsylvania</label>
<value>PA</value>
</item>
<item>
<label>South Carolina</label>
<value>SC</value>
</item>
<item>
<label>South Dakota</label>
<value>SD</value>
</item>
<item>
<label>Tenessee</label>
<value>TN</value>
</item>
<item>
<label>Texas</label>
<value>TX</value>
</item>
<item>
<label>Utah</label>
<value>UT</value>
</item>
<item>
<label>Virginia</label>
<value>VA</value>
</item>
<item>
<label>Vermont</label>
<value>VT</value>
</item>
<item>
<label>Washington</label>
<value>WA</value>
</item>
<item>
<label>Wisconsin</label>
<value>WI</value>
</item>
<item>
<label>West Virgina</label>
<value>WV</value>
</item>
<item>
<label>Wyoming</label>
<value>WY</value>
</item>
<item>
<label>District Capital</label>
<value>DC</value>
</item>
</select>
<select1 ref="/widgets/select_widgets/select1">
<label>Select one widget</label>
<hint>Scroll down to see default selection (type=select_one list2, default=8)</hint>
<item>
<label>option 1</label>
<value>1</value>
</item>
<item>
<label>option 2</label>
<value>2</value>
</item>
<item>
<label>option 3</label>
<value>3</value>
</item>
<item>
<label>option 4</label>
<value>4</value>
</item>
<item>
<label>option 5</label>
<value>5</value>
</item>
<item>
<label>option 6</label>
<value>6</value>
</item>
<item>
<label>option 7</label>
<value>7</value>
</item>
<item>
<label>option 8</label>
<value>8</value>
</item>
</select1>
<select1 appearance="horizontal-compact" ref="/widgets/select_widgets/select1_horizontal_compact">
<label>Select one widget displaying horizontally</label>
<hint>(type=select_one, appearance=horizontal-compact)</hint>
<item>
<label>Yes</label>
<value>yes</value>
</item>
<item>
<label>No</label>
<value>no</value>
</item>
<item>
<label>Don't Know</label>
<value>dk</value>
</item>
<item>
<label>Not Applicable</label>
<value>na</value>
</item>
</select1>
<select1 appearance="horizontal" ref="/widgets/select_widgets/select1_horizontal">
<label>Select one widget displaying horizontally in colmns</label>
<hint>(type=select_one, appearance=horizontal)</hint>
<item>
<label>option 1</label>
<value>1</value>
</item>
<item>
<label>option 2</label>
<value>2</value>
</item>
<item>
<label>option 3</label>
<value>3</value>
</item>
<item>
<label>option 4</label>
<value>4</value>
</item>
<item>
<label>option 5</label>
<value>5</value>
</item>
<item>
<label>option 6</label>
<value>6</value>
</item>
<item>
<label>option 7</label>
<value>7</value>
</item>
<item>
<label>option 8</label>
<value>8</value>
</item>
</select1>
<select1 appearance="likert" ref="/widgets/select_widgets/select1_likert">
<label>Select one displaying as a Likert item</label>
<hint>(type=select_one, appearance=likert)</hint>
<item>
<label>strongly disagree</label>
<value>1</value>
</item>
<item>
<label>disagree</label>
<value>2</value>
</item>
<item>
<label>neither agree nor disagree jand aflkjaflk djklaadklj fdsaklfj sdalkfj asdklj fakdsl jfj kl jsdj kfldja fkljd abcde </label>
<value>3</value>
</item>
<item>
<label>agree</label>
<value>4</value>
</item>
<item>
<label>strongly agree</label>
<value>5</value>
</item>
</select1>
<select1 appearance="minimal" ref="/widgets/select_widgets/select1_spinner">
<label>Select one: pulldown</label>
<hint>Showing a pull-down list of options (type=select_one list, appearance=minimal)</hint>
<item>
<label>option a</label>
<value>a</value>
</item>
<item>
<label>option b</label>
<value>b</value>
</item>
<item>
<label>option c</label>
<value>c</value>
</item>
<item>
<label>option d</label>
<value>d</value>
</item>
</select1>
<select1 appearance="autocomplete" ref="/widgets/select_widgets/select1_autocomplete">
<label>Select one autocomplete widget</label>
<hint>Type e.g. 'g' to filter options. (type=select_one, appearance=autocomplete)</hint>
<item>
<label ref="jr:itext('/widgets/select_widgets/select1_autocomplete/king:label')"/>
<value>king</value>
</item>
<item>
<label ref="jr:itext('/widgets/select_widgets/select1_autocomplete/pig:label')"/>
<value>pig</value>
</item>
<item>
<label ref="jr:itext('/widgets/select_widgets/select1_autocomplete/nut:label')"/>
<value>nut</value>
</item>
</select1>
<select1 appearance="image-map" ref="/widgets/select_widgets/select1_image-map">
<label ref="jr:itext('/widgets/select_widgets/select1_image-map:label')"/>
<hint>(type=select, appearance=image-map)</hint>
<item>
<label>Alaska</label>
<value>AK</value>
</item>
<item>
<label>Hawaii</label>
<value>HI</value>
</item>
<item>
<label>Alabama</label>
<value>AL</value>
</item>
<item>
<label>Arkansas</label>
<value>AR</value>
</item>
<item>
<label>Arizona</label>
<value>AZ</value>
</item>
<item>
<label>California</label>
<value>CA</value>
</item>
<item>
<label>Colorado</label>
<value>CO</value>
</item>
<item>
<label>Connecticut</label>
<value>CT</value>
</item>
<item>
<label>Delaware</label>
<value>DE</value>
</item>
<item>
<label>Florida</label>
<value>FL</value>
</item>
<item>
<label>Georgia</label>
<value>GA</value>
</item>
<item>
<label>Iowa</label>
<value>IA</value>
</item>
<item>
<label>Idaho</label>
<value>ID</value>
</item>
<item>
<label>Ilinois</label>
<value>IL</value>
</item>
<item>
<label>Indiana</label>
<value>IN</value>
</item>
<item>
<label>Kansas</label>
<value>KS</value>
</item>
<item>
<label>Louisiana</label>
<value>LA</value>
</item>
<item>
<label>Massachusetts</label>
<value>MA</value>
</item>
<item>
<label>Maryland</label>
<value>MD</value>
</item>
<item>
<label>Maine</label>
<value>ME</value>
</item>
<item>
<label>Michigan</label>
<value>MI</value>
</item>
<item>
<label>Minnesota</label>
<value>MN</value>
</item>
<item>
<label>Missouri</label>
<value>MO</value>
</item>
<item>
<label>Mississippi</label>
<value>MS</value>
</item>
<item>
<label>Montana</label>
<value>MT</value>
</item>
<item>
<label>North Carolina</label>
<value>NC</value>
</item>
<item>
<label>North Dakota</label>
<value>ND</value>
</item>
<item>
<label>Nebraska</label>
<value>NE</value>
</item>
<item>
<label>New Hampshire</label>
<value>NH</value>
</item>
<item>
<label>New Jersey</label>
<value>NJ</value>
</item>
<item>
<label>New Mexico</label>
<value>NM</value>
</item>
<item>
<label>Nevada</label>
<value>NV</value>
</item>
<item>
<label>New York</label>
<value>NY</value>
</item>
<item>
<label>Ohio</label>
<value>OH</value>
</item>
<item>
<label>Oklahoma</label>
<value>OK</value>
</item>
<item>
<label>Oregon</label>
<value>OR</value>
</item>
<item>
<label>Pennsylvania</label>
<value>PA</value>
</item>
<item>
<label>South Carolina</label>
<value>SC</value>
</item>
<item>
<label>South Dakota</label>
<value>SD</value>
</item>
<item>
<label>Tenessee</label>
<value>TN</value>
</item>
<item>
<label>Texas</label>
<value>TX</value>
</item>
<item>
<label>Utah</label>
<value>UT</value>
</item>
<item>
<label>Virginia</label>
<value>VA</value>
</item>
<item>
<label>Vermont</label>
<value>VT</value>
</item>
<item>
<label>Washington</label>
<value>WA</value>
</item>
<item>
<label>Wisconsin</label>
<value>WI</value>
</item>
<item>
<label>West Virgina</label>
<value>WV</value>
</item>
<item>
<label>Wyoming</label>
<value>WY</value>
</item>
<item>
<label>District Capital</label>
<value>DC</value>
</item>
</select1>
<select1 appearance="compact" ref="/widgets/select_widgets/grid_test">
<label>Grid select one widget</label>
<hint>Make sure to put a.jpg and b.jpg in the form-media folder to see images here. (type=select_one a_b, appearance=compact)</hint>
<item>
<label ref="jr:itext('/widgets/select_widgets/grid_test/a:label')"/>
<value>a</value>
</item>
<item>
<label ref="jr:itext('/widgets/select_widgets/grid_test/b:label')"/>
<value>b</value>
</item>
</select1>
<select1 appearance="compact-2" ref="/widgets/select_widgets/grid_2_columns">
<label>Grid select one widget</label>
<hint>Grid with a maximum of 2 columns. (type=select_one a_b, appearance=compact-2)</hint>
<item>
<label ref="jr:itext('/widgets/select_widgets/grid_2_columns/a:label')"/>
<value>a</value>
</item>
<item>
<label ref="jr:itext('/widgets/select_widgets/grid_2_columns/b:label')"/>
<value>b</value>
</item>
<item>
<label ref="jr:itext('/widgets/select_widgets/grid_2_columns/c:label')"/>
<value>c</value>
</item>
<item>
<label ref="jr:itext('/widgets/select_widgets/grid_2_columns/d:label')"/>
<value>d</value>
</item>
</select1>
<group appearance="field-list" ref="/widgets/select_widgets/table_list_test">
<label>Table</label>
<select1 appearance="label" ref="/widgets/select_widgets/table_list_test/table_list_test_label">
<label>Table</label>
<hint>Show only the labels of these options and not the inputs (type=select_one yes_no, appearance=label)</hint>
<item>
<label>Yes</label>
<value>yes</value>
</item>
<item>
<label>No</label>
<value>no</value>
</item>
<item>
<label>Don't Know</label>
<value>dk</value>
</item>
<item>
<label>Not Applicable</label>
<value>na</value>
</item>
</select1>
<select1 appearance="list-nolabel" ref="/widgets/select_widgets/table_list_test/table_list_1">
<label>Q1</label>
<hint>Show only the inputs of these options and not the labels (type=select_one yes_no, appearance=list-nolabel)</hint>
<item>
<label>Yes</label>
<value>yes</value>
</item>
<item>
<label>No</label>
<value>no</value>
</item>
<item>
<label>Don't Know</label>
<value>dk</value>
</item>
<item>
<label>Not Applicable</label>
<value>na</value>
</item>
</select1>
<select1 appearance="list-nolabel" ref="/widgets/select_widgets/table_list_test/table_list_2">
<label>Question 2</label>
<hint>Show only the inputs of these options and not the labels (type=select_one yes_no, appearance=list-nolabel)</hint>
<item>
<label>Yes</label>
<value>yes</value>
</item>
<item>
<label>No</label>
<value>no</value>
</item>
<item>
<label>Don't Know</label>
<value>dk</value>
</item>
<item>
<label>Not Applicable</label>
<value>na</value>
</item>
</select1>
</group>
<group appearance="field-list" ref="/widgets/select_widgets/table_list_test2">
<input ref="/widgets/select_widgets/table_list_test2/generated_table_list_label_41">
<label>Table (alternative method)</label>
</input>
<select1 appearance="label" ref="/widgets/select_widgets/table_list_test2/reserved_name_for_field_list_labels_42">
<label></label>
<item>
<label>Yes</label>
<value>yes</value>
</item>
<item>
<label>No</label>
<value>no</value>
</item>
<item>
<label>Don't Know</label>
<value>dk</value>
</item>
<item>
<label>Not Applicable</label>
<value>na</value>
</item>
</select1>
<select1 appearance="list-nolabel" ref="/widgets/select_widgets/table_list_test2/table_list_3">
<label>Q1</label>
<hint>No need to do anything special here</hint>
<item>
<label>Yes</label>
<value>yes</value>
</item>
<item>
<label>No</label>
<value>no</value>
</item>
<item>
<label>Don't Know</label>
<value>dk</value>
</item>
<item>
<label>Not Applicable</label>
<value>na</value>
</item>
</select1>
<select1 appearance="list-nolabel" ref="/widgets/select_widgets/table_list_test2/table_list_4">
<label>Question 2</label>
<hint>No need to do anything special here</hint>
<item>
<label>Yes</label>
<value>yes</value>
</item>
<item>
<label>No</label>
<value>no</value>
</item>
<item>
<label>Don't Know</label>
<value>dk</value>
</item>
<item>
<label>Not Applicable</label>
<value>na</value>
</item>
</select1>
</group>
<group appearance="field-list" ref="/widgets/select_widgets/happy_sad_table_2">
<label>Table with image labels</label>
<select appearance="label" ref="/widgets/select_widgets/happy_sad_table_2/happy_sad_second_method">
<label>Select mood</label>
<hint>Show only the labels of these options and not the inputs (type=select_one yes_no, appearance=label)</hint>
<item>
<label ref="jr:itext('/widgets/select_widgets/happy_sad_table_2/happy_sad_second_method/happy:label')"/>
<value>happy</value>
</item>
<item>
<label ref="jr:itext('/widgets/select_widgets/happy_sad_table_2/happy_sad_second_method/sad:label')"/>
<value>sad</value>
</item>
</select>
<select appearance="list-nolabel" ref="/widgets/select_widgets/happy_sad_table_2/happy_sad_brian2">
<label>Brian</label>
<hint>Show only the inputs of these options and not the labels (type=select_one yes_no, appearance=list-nolabel)</hint>
<item>
<label ref="jr:itext('/widgets/select_widgets/happy_sad_table_2/happy_sad_brian2/happy:label')"/>
<value>happy</value>
</item>
<item>
<label ref="jr:itext('/widgets/select_widgets/happy_sad_table_2/happy_sad_brian2/sad:label')"/>
<value>sad</value>
</item>
</select>
<select appearance="list-nolabel" ref="/widgets/select_widgets/happy_sad_table_2/happy_sad_michael2">
<label>Michael</label>
<hint>Show only the inputs of these options and not the labels (type=select_one yes_no, appearance=list-nolabel)</hint>
<item>
<label ref="jr:itext('/widgets/select_widgets/happy_sad_table_2/happy_sad_michael2/happy:label')"/>
<value>happy</value>
</item>
<item>
<label ref="jr:itext('/widgets/select_widgets/happy_sad_table_2/happy_sad_michael2/sad:label')"/>
<value>sad</value>
</item>
</select>
</group>
<group appearance="field-list" ref="/widgets/select_widgets/happy_sad_table">
<input ref="/widgets/select_widgets/happy_sad_table/generated_table_list_label_50">
<label>Table with image labels (alternative method)</label>
</input>
<select appearance="label" ref="/widgets/select_widgets/happy_sad_table/reserved_name_for_field_list_labels_51">
<label></label>
<item>
<label ref="jr:itext('/widgets/select_widgets/happy_sad_table/reserved_name_for_field_list_labels_51/happy:label')"/>
<value>happy</value>
</item>
<item>
<label ref="jr:itext('/widgets/select_widgets/happy_sad_table/reserved_name_for_field_list_labels_51/sad:label')"/>
<value>sad</value>
</item>
</select>
<select appearance="list-nolabel" ref="/widgets/select_widgets/happy_sad_table/happy_sad_brian">
<label>Brian</label>
<item>
<label ref="jr:itext('/widgets/select_widgets/happy_sad_table/happy_sad_brian/happy:label')"/>
<value>happy</value>
</item>
<item>
<label ref="jr:itext('/widgets/select_widgets/happy_sad_table/happy_sad_brian/sad:label')"/>
<value>sad</value>
</item>
</select>
<select appearance="list-nolabel" ref="/widgets/select_widgets/happy_sad_table/happy_sad_michael">
<label>Michael</label>
<item>
<label ref="jr:itext('/widgets/select_widgets/happy_sad_table/happy_sad_michael/happy:label')"/>
<value>happy</value>
</item>
<item>
<label ref="jr:itext('/widgets/select_widgets/happy_sad_table/happy_sad_michael/sad:label')"/>
<value>sad</value>
</item>
</select>
</group>
</group>
<group ref="/widgets/cascading_widgets">
<label>Cascading Select widgets</label>
<group ref="/widgets/cascading_widgets/group1">
<label>Cascading Selects with Radio Buttons</label>
<select1 ref="/widgets/cascading_widgets/group1/country">
<label>Country</label>
<item>
<label>The Netherlands</label>
<value>nl</value>
</item>
<item>
<label>United States</label>
<value>usa</value>
</item>
</select1>
<select1 ref="/widgets/cascading_widgets/group1/city">
<label>City</label>
<hint> Using a choice filter to update options based on a previous answer (choice_filter: country =
<output value=" /widgets/cascading_widgets/group1/country "/>
)
</hint>
<itemset nodeset="instance('cities')/root/item[country= /widgets/cascading_widgets/group1/country ]">
<value ref="name"/>
<label ref="jr:itext(itextId)"/>
</itemset>
</select1>
<select1 ref="/widgets/cascading_widgets/group1/neighborhood">
<label>Neighborhood</label>
<hint> Using a choice filter to update options based on previous answers (choice_filter: country =
<output value=" /widgets/cascading_widgets/group1/country "/>
and city =
<output value=" /widgets/cascading_widgets/group1/city "/>
)
</hint>
<itemset nodeset="instance('neighborhoods')/root/item[country= /widgets/cascading_widgets/group1/country and city= /widgets/cascading_widgets/group1/city ]">
<value ref="name"/>
<label ref="jr:itext(itextId)"/>
</itemset>
</select1>
</group>
<group ref="/widgets/cascading_widgets/group2">
<label>Cascading Selects with Pulldowns</label>
<select1 appearance="minimal" ref="/widgets/cascading_widgets/group2/country2">
<label>Country</label>
<hint>(appearance: minimal)</hint>
<item>
<label>The Netherlands</label>
<value>nl</value>
</item>
<item>
<label>United States</label>
<value>usa</value>
</item>
</select1>
<select1 appearance="minimal" ref="/widgets/cascading_widgets/group2/city2">
<label>City</label>
<hint> Using a choice filter to update options based on a previous answer (choice_filter: country =
<output value=" /widgets/cascading_widgets/group2/country2 "/>
, appearance: minimal)
</hint>
<itemset nodeset="instance('cities')/root/item[country= /widgets/cascading_widgets/group2/country2 ]">
<value ref="name"/>
<label ref="jr:itext(itextId)"/>
</itemset>
</select1>
<select1 appearance="minimal" ref="/widgets/cascading_widgets/group2/neighborhood2">
<label>Neighborhood</label>
<hint> Using a choice filter to update options based on previous answers (choice_filter: country =
<output value=" /widgets/cascading_widgets/group2/country2 "/>
and city =
<output value=" /widgets/cascading_widgets/group2/city2 "/>
, appearance = minimal)
</hint>
<itemset nodeset="instance('neighborhoods')/root/item[country= /widgets/cascading_widgets/group2/country2 and city= /widgets/cascading_widgets/group2/city2 ]">
<value ref="name"/>
<label ref="jr:itext(itextId)"/>
</itemset>
</select1>
</group>
</group>
<group ref="/widgets/geopoint_widgets">
<label>Geo widgets</label>
<input ref="/widgets/geopoint_widgets/geopoint">
<label>Geopoint widget</label>
<hint>Record the gps location. In enketo it also shows a map. (type=geopoint)</hint>
</input>
<input appearance="maps" ref="/widgets/geopoint_widgets/geopoint_m">
<label>Geopoint with map Widget</label>
<hint>Record the gps location. In enketo is is the same as the previous. (type=geopoint, appearance=maps)</hint>
</input>
<input appearance="maps hide-input" ref="/widgets/geopoint_widgets/geopoint_hide">
<label>Geopoint widget that hides input fields by default</label>
<hint>Show a larger map (on desktop screens), you can hide the input fields. (appearance = hide-input)</hint>
</input>
<input appearance="maps hide-input" ref="/widgets/geopoint_widgets/geotrace">
<label>Geotrace widget</label>
<hint>Record a sequence of geopoints (type=geotrace, appearance=maps hide-input)</hint>
</input>
<input appearance="maps hide-input" ref="/widgets/geopoint_widgets/geoshape">
<label>Geoshape widget</label>
<hint>Record a closed sequence/polygon of geopoints (type=geoshape, appearance=maps hide-input)</hint>
</input>
</group>
<group ref="/widgets/media_widgets">
<label>Media input widgets</label>
<upload mediatype="image/*" ref="/widgets/media_widgets/image">
<label>Image widget</label>
<hint>Select an image or take a photo (type=image)</hint>
</upload>
<upload appearance="draw" mediatype="image/*" ref="/widgets/media_widgets/draw">
<label>Draw widget</label>
<hint>Make a drawing (type=image, appearance=draw)</hint>
</upload>
<upload appearance="signature" mediatype="image/*" ref="/widgets/media_widgets/signature">
<label>Signature widget</label>
<hint>Add a signature (type=image, appearance=signature)</hint>
</upload>
<upload appearance="annotate" mediatype="image/*" ref="/widgets/media_widgets/annotate">
<label>Annotate image widget</label>
<hint>Upload and annotate an image (type=image, appearance=annotate)</hint>
</upload>
<upload mediatype="audio/*" ref="/widgets/media_widgets/my_audio">
<label>Audio widget</label>
<hint>Select an audio file or record audio (type=audio)</hint>
</upload>
<upload mediatype="video/*" ref="/widgets/media_widgets/my_video">
<label>Video widget</label>
<hint>Select a video file or record a video (type=video)</hint>
</upload>
</group>
<group ref="/widgets/display_widgets">
<label>Display widgets</label>
<input ref="/widgets/display_widgets/my_output">
<label> Note widget. In notes you can emphasize _words_ or _multiple words_ or __strongly emphasize something__.
You can also use a line break to start a new sentence.
The decimal number you entered was
<output value=" /widgets/number_widgets/decimal "/>
.
</label>
<hint>This is a note and it uses a value of another field in its label (type=note)</hint>
</input>
<input ref="/widgets/display_widgets/text_media">
<label ref="jr:itext('/widgets/display_widgets/text_media:label')"/>
<hint>Add the file name in the audio column on your survey sheet. Make sure you upload this file when you publish your form.</hint>
</input>
<select1 ref="/widgets/display_widgets/select_media">
<label>You can also add media to choices. Choose your favorite bird.</label>
<hint>Add the file name in the image column on your choices sheet. Make sure you upload this file when you publish your form.</hint>
<item>
<label ref="jr:itext('/widgets/display_widgets/select_media/king:label')"/>
<value>king</value>
</item>
<item>
<label ref="jr:itext('/widgets/display_widgets/select_media/pig:label')"/>
<value>pig</value>
</item>
<item>
<label ref="jr:itext('/widgets/display_widgets/select_media/nut:label')"/>
<value>nut</value>
</item>
</select1>
<trigger ref="/widgets/display_widgets/my_trigger">
<label>Acknowledge widget</label>
<hint>Prompts for confirmation. Useful to combine with required or relevant. (type=trigger)</hint>
</trigger>
</group>
</h:body>
</h:html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment