PreFilling a nested repetition

3 views
Skip to first unread message

Ahmidou

unread,
Jun 17, 2008, 11:27:43 AM6/17/08
to Web Forms 2.0 Implementation
Hello I'm trying to prefill a nested repetition block,
Is it possible? I have this code, but it seems the webform can't read
the nested template in the xml ("[S].P").
Best regards
Ahmidou

----------the html---------------------------------------
<li repeat="template" repeat-start="0" id="S">
<input type="number" step="1" name="S[S]" size="3" value="[S]">
<button type="remove">Delete Sequence</button>
<li repeat="template" repeat-start="0" id="[S].P">
<input type="number" step="1" name="S[S].P[[S].P]" size="3"
value="[[S].P]">
<button type="remove">Delete Plan</button>
</li>
<input type="add" template="[S].P">
</li>
<input type="add" template="S">
-----------------------------------------------------------
---------The xml------------------------
<?xml version="1.0"?>
<formdata xmlns="http://n.whatwg.org/formdata">
<clear template="S" />
<clear template="P" />
<repeat template="S" index="0"/>
<field name="S0">3</field>
<repeat template="[S].P" index="0"/>
<field name="S0.P0">8</field>
<repeat template="S" index="1"/>
<repeat template="S" index="2"/>
</formdata>
-------------------------------------------------



Reply all
Reply to author
Forward
0 new messages