Several forms with same id in nested lists

7 views
Skip to first unread message

JB

unread,
May 5, 2014, 11:44:19 AM5/5/14
to zena...@googlegroups.com
Hi all,

I created a page with nested lists. I am displaying the list of companies in site and for each company the list of addresses of this company.
I am using 'add' and 'form' at the end of each list (the end of the company list and the end of each addresses list)

All forms are properly created in the page. The problem is that the forms for addresses lists all have the same id. When I click on the 'add button' of any addresses list it will always open the form from the first addresses list. Can I change this behaviour?

Thanks!

Details:

The page has this same line of code for all addresses forms (all same id):
<li style="display:none;" class="form" id="main2_0">

Here is the zafu code:

<div do='companies in site'>
<ul>
<li do='each' do='link'>
<ul do='addresses'>
<li do='each' do='link'/>
<li do='add' after='self'/>
<li do='form'>
<r:textarea label='Adresse (sauf pays):' name='title'/>
<r:cancel t='Annuler'/><r:input type='submit'/>
</li>
</ul>
</li>
</ul>
</div>

JB

unread,
May 5, 2014, 12:57:03 PM5/5/14
to zena...@googlegroups.com
I tryed to change the id of my <ul> with <ul id='#{uuid}' do='addresses'>

The ul then has a unique id: <ul id="uc340f81af">

But the form comes with <li class="form" id="__uuid__0">

So I still have all forms with the same id... Any help welcomed!
Reply all
Reply to author
Forward
0 new messages