-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Milestone
Description
Expected Behaviour
Actions that are set to fire on odk-instance-first-load should not fire when adding a new repeat.
Observed Behaviour
They do.
Reproduction Steps
Form (XML or XLSX file):
<h:html xmlns="http://www.w3.org/2002/xforms"
xmlns:h="http://www.w3.org/1999/xhtml">
<h:head>
<h:title>Simple Form</h:title>
<model>
<instance>
<data id="collect197test">
<rep>
<text />
</rep>
<meta>
<instanceID/>
</meta>
</data>
</instance>
<setvalue ref="/data/rep/text" event="odk-instance-first-load" value="'first'"/>
<bind nodeset="/data/meta/instanceID" type="string" readonly="true()" calculate="concat('uuid:',uuid())"/>
</model>
</h:head>
<h:body>
<group appearance="field-list">
<repeat nodeset="/data/rep">
<input ref="/data/rep/text">
<label>Text</label>
</input>
</repeat>
</group>
</h:body>
</h:html>Steps:
- Load the form
- Add a repeat
- Only the first element should have a value of "first", but actually both do
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
In Progress