-
-
Notifications
You must be signed in to change notification settings - Fork 219
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add enketo demo XForms for various features
- Loading branch information
Showing
8 changed files
with
2,164 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,375 @@ | ||
<?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:orx="http://openrosa.org/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> | ||
<h:head> | ||
<h:title>Enketo Autocomplete Issue</h:title> | ||
<model> | ||
<instance> | ||
<autocomplete delimiter="#" id="autocomplete-issue" prefix="J1!autocomplete-issue!"> | ||
<survey_explanation/> | ||
<a_group> | ||
<respondent_name/> | ||
</a_group> | ||
<country/> | ||
<meta> | ||
<instanceID/> | ||
</meta> | ||
</autocomplete> | ||
</instance> | ||
<instance id="contact-summary"/> | ||
<bind nodeset="/autocomplete/survey_explanation" readonly="true()" type="string"/> | ||
<bind nodeset="/autocomplete/a_group/respondent_name" type="string"/> | ||
<bind nodeset="/autocomplete/country" type="select1"/> | ||
<bind calculate="concat('uuid:', uuid())" nodeset="/autocomplete/meta/instanceID" readonly="true()" type="string"/> | ||
</model> | ||
</h:head> | ||
<h:body> | ||
<input ref="/autocomplete/survey_explanation"> | ||
<label>country</label> | ||
</input> | ||
<group ref="/autocomplete/a_group"> | ||
<label>Group</label> | ||
<input ref="/autocomplete/a_group/respondent_name"> | ||
<label>Name</label> | ||
</input> | ||
</group> | ||
<select1 appearance="autocomplete" ref="/autocomplete/country"> | ||
<label>Country</label> | ||
<item> | ||
<label>Afghanistan</label> | ||
<value>AFG</value> | ||
</item> | ||
<item> | ||
<label>Algeria</label> | ||
<value>DZA</value> | ||
</item> | ||
<item> | ||
<label>Angola</label> | ||
<value>AGO</value> | ||
</item> | ||
<item> | ||
<label>Bahrain</label> | ||
<value>BHR</value> | ||
</item> | ||
<item> | ||
<label>Botswana</label> | ||
<value>BWA</value> | ||
</item> | ||
<item> | ||
<label>Bangladesh</label> | ||
<value>BGD</value> | ||
</item> | ||
<item> | ||
<label>Myanmar</label> | ||
<value>MMR</value> | ||
</item> | ||
<item> | ||
<label>Benin</label> | ||
<value>BEN</value> | ||
</item> | ||
<item> | ||
<label>Bhutan</label> | ||
<value>BTN</value> | ||
</item> | ||
<item> | ||
<label>Burundi</label> | ||
<value>BDI</value> | ||
</item> | ||
<item> | ||
<label>Chad</label> | ||
<value>TCD</value> | ||
</item> | ||
<item> | ||
<label>Sri Lanka</label> | ||
<value>LKA</value> | ||
</item> | ||
<item> | ||
<label>Congo</label> | ||
<value>COG</value> | ||
</item> | ||
<item> | ||
<label>Democratic Republic of the Congo</label> | ||
<value>COD</value> | ||
</item> | ||
<item> | ||
<label>Cameroon</label> | ||
<value>CMR</value> | ||
</item> | ||
<item> | ||
<label>Comoros</label> | ||
<value>COM</value> | ||
</item> | ||
<item> | ||
<label>Central African Republic</label> | ||
<value>CAF</value> | ||
</item> | ||
<item> | ||
<label>Cape Verde</label> | ||
<value>CPV</value> | ||
</item> | ||
<item> | ||
<label>Djibouti</label> | ||
<value>DJI</value> | ||
</item> | ||
<item> | ||
<label>Equatorial Guinea</label> | ||
<value>GNQ</value> | ||
</item> | ||
<item> | ||
<label>Eritrea</label> | ||
<value>ERI</value> | ||
</item> | ||
<item> | ||
<label>Ethiopia</label> | ||
<value>ETH</value> | ||
</item> | ||
<item> | ||
<label>Gambia</label> | ||
<value>GMB</value> | ||
</item> | ||
<item> | ||
<label>Gabon</label> | ||
<value>GAB</value> | ||
</item> | ||
<item> | ||
<label>Ghana</label> | ||
<value>GHA</value> | ||
</item> | ||
<item> | ||
<label>Guinea</label> | ||
<value>GIN</value> | ||
</item> | ||
<item> | ||
<label>India</label> | ||
<value>IND</value> | ||
</item> | ||
<item> | ||
<label>Iran (Islamic Republic of)</label> | ||
<value>IRN</value> | ||
</item> | ||
<item> | ||
<label>Côte d'Ivoire</label> | ||
<value>CIV</value> | ||
</item> | ||
<item> | ||
<label>Iraq</label> | ||
<value>IRQ</value> | ||
</item> | ||
<item> | ||
<label>Jordan</label> | ||
<value>JOR</value> | ||
</item> | ||
<item> | ||
<label>Kenya</label> | ||
<value>KEN</value> | ||
</item> | ||
<item> | ||
<label>Democratic People's Republic of Korea</label> | ||
<value>PRK</value> | ||
</item> | ||
<item> | ||
<label>Kuwait</label> | ||
<value>KWT</value> | ||
</item> | ||
<item> | ||
<label>Lebanon</label> | ||
<value>LBN</value> | ||
</item> | ||
<item> | ||
<label>Liberia</label> | ||
<value>LBR</value> | ||
</item> | ||
<item> | ||
<label>Lesotho</label> | ||
<value>LSO</value> | ||
</item> | ||
<item> | ||
<label>Libya</label> | ||
<value>LBY</value> | ||
</item> | ||
<item> | ||
<label>Madagascar</label> | ||
<value>MDG</value> | ||
</item> | ||
<item> | ||
<label>France</label> | ||
<value>MYT</value> | ||
</item> | ||
<item> | ||
<label>Malawi</label> | ||
<value>MWI</value> | ||
</item> | ||
<item> | ||
<label>Mali</label> | ||
<value>MLI</value> | ||
</item> | ||
<item> | ||
<label>Morocco</label> | ||
<value>MAR</value> | ||
</item> | ||
<item> | ||
<label>Mauritius</label> | ||
<value>MUS</value> | ||
</item> | ||
<item> | ||
<label>Mauritania</label> | ||
<value>MRT</value> | ||
</item> | ||
<item> | ||
<label>Oman</label> | ||
<value>OMN</value> | ||
</item> | ||
<item> | ||
<label>Maldives</label> | ||
<value>MDV</value> | ||
</item> | ||
<item> | ||
<label>Mozambique</label> | ||
<value>MOZ</value> | ||
</item> | ||
<item> | ||
<label>Niger</label> | ||
<value>NER</value> | ||
</item> | ||
<item> | ||
<label>Nigeria</label> | ||
<value>NGA</value> | ||
</item> | ||
<item> | ||
<label>Nepal</label> | ||
<value>NPL</value> | ||
</item> | ||
<item> | ||
<label>Pakistan</label> | ||
<value>PAK</value> | ||
</item> | ||
<item> | ||
<label>Guinea-Bissau</label> | ||
<value>GNB</value> | ||
</item> | ||
<item> | ||
<label>Qatar</label> | ||
<value>QAT</value> | ||
</item> | ||
<item> | ||
<label>France</label> | ||
<value>REU</value> | ||
</item> | ||
<item> | ||
<label>Rwanda</label> | ||
<value>RWA</value> | ||
</item> | ||
<item> | ||
<label>Seychelles</label> | ||
<value>SYC</value> | ||
</item> | ||
<item> | ||
<label>Senegal</label> | ||
<value>SEN</value> | ||
</item> | ||
<item> | ||
<label>United Kingdom of Great Britain and Northern Ireland</label> | ||
<value>SHN</value> | ||
</item> | ||
<item> | ||
<label>Sierra Leone</label> | ||
<value>SLE</value> | ||
</item> | ||
<item> | ||
<label>Somalia</label> | ||
<value>SOM</value> | ||
</item> | ||
<item> | ||
<label>Syrian Arab Republic</label> | ||
<value>SYR</value> | ||
</item> | ||
<item> | ||
<label>United Arab Emirates</label> | ||
<value>ARE</value> | ||
</item> | ||
<item> | ||
<label>Thailand</label> | ||
<value>THA</value> | ||
</item> | ||
<item> | ||
<label>Togo</label> | ||
<value>TGO</value> | ||
</item> | ||
<item> | ||
<label>Sao Tome and Principe</label> | ||
<value>STP</value> | ||
</item> | ||
<item> | ||
<label>Tunisia</label> | ||
<value>TUN</value> | ||
</item> | ||
<item> | ||
<label>United Republic of Tanzania</label> | ||
<value>TZA</value> | ||
</item> | ||
<item> | ||
<label>Uganda</label> | ||
<value>UGA</value> | ||
</item> | ||
<item> | ||
<label>Burkina Faso</label> | ||
<value>BFA</value> | ||
</item> | ||
<item> | ||
<label>Western Sahara</label> | ||
<value>ESH</value> | ||
</item> | ||
<item> | ||
<label>Swaziland</label> | ||
<value>SWZ</value> | ||
</item> | ||
<item> | ||
<label>Zambia</label> | ||
<value>ZMB</value> | ||
</item> | ||
<item> | ||
<label>Zimbabwe</label> | ||
<value>ZWE</value> | ||
</item> | ||
<item> | ||
<label>Saudi Arabia</label> | ||
<value>SAU</value> | ||
</item> | ||
<item> | ||
<label>Yemen</label> | ||
<value>YEM</value> | ||
</item> | ||
<item> | ||
<label>South Africa</label> | ||
<value>ZAF</value> | ||
</item> | ||
<item> | ||
<label>Namibia</label> | ||
<value>NAM</value> | ||
</item> | ||
<item> | ||
<label>Timor-Leste</label> | ||
<value>TLS</value> | ||
</item> | ||
<item> | ||
<label>West Bank and Gaza Strip</label> | ||
<value>PSE</value> | ||
</item> | ||
<item> | ||
<label>Indonesia</label> | ||
<value>IDN</value> | ||
</item> | ||
<item> | ||
<label>Egypt</label> | ||
<value>EGY</value> | ||
</item> | ||
<item> | ||
<label>Sudan</label> | ||
<value>SDN</value> | ||
</item> | ||
<item> | ||
<label>South Sudan</label> | ||
<value>SSD</value> | ||
</item> | ||
</select1> | ||
</h:body> | ||
</h:html> |
Oops, something went wrong.