Created
May 30, 2019 20:27
-
-
Save MartijnR/b1e5cf3830c422c40b3a179518d582bf to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<?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" xmlns:oc="http://openclinica.org/xforms"> | |
<h:head><!-- ODK Aggregate upload time: 2017-07-11T21:43:45.170+0000 on https://enketo-aggregate.appspot.com --> | |
<h:title>relevant-group</h:title> | |
<model> | |
<instance> | |
<data id="relevant-group"> | |
<something/> | |
<rep jr:template=""> | |
<val/> | |
<val_comment>{"a": "b"}</val_comment> | |
<calc/> | |
<skipq/> | |
</rep> | |
<meta> | |
<instanceID/> | |
</meta> | |
</data> | |
</instance> | |
<bind constraint="string-length(.) > 10" nodeset="/data/something" required="true()" type="string"/> | |
<bind nodeset="/data/rep" relevant=" /data/something != ''" oc:relevantMsg="relevant if something is not empty"/> | |
<bind constraint="string-length(.) > 10" nodeset="/data/rep/val" required="true()" type="string"/> | |
<bind nodeset="/data/rep/val_comment" enk:for="/data/rep/val" type="string"/> | |
<bind nodeset="/data/rep/calc" enk:for="/data/rep/val" calculate="2+2" type="string"/> | |
<bind constraint="string-length(.) > 2" nodeset="/data/rep/skipq" required="true()" type="int"/> | |
<bind calculate="concat('uuid:', uuid())" nodeset="/data/meta/instanceID" readonly="true()" type="string"/> | |
</model> | |
</h:head> | |
<h:body> | |
<input ref="/data/something"> | |
<label>something with a relevant that will be cached</label>s | |
</input> | |
<group ref="/data/rep"> | |
<label></label> | |
<repeat nodeset="/data/rep"> | |
<input ref="/data/rep/val"> | |
<label>enter value</label> | |
</input> | |
<input ref="/data/rep/val_comment" appearance="dn"> | |
<label>enter value</label> | |
</input> | |
<input ref="/data/rep/skipq"> | |
<label>enter number</label> | |
</input> | |
</repeat> | |
</group> | |
</h:body> | |
</h:html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment