[html-formfu] Repeatable attribute and auto_id
Ascii King
tech at swattermatter.com
Thu Feb 26 16:53:20 GMT 2009
If I set the auto_id in a repeatable element, it seems to affect all
elements within the main block but not the main block itself.
I need it to affect the main block. Am I doing it wrong?
Here's what happens.
This code:
- type: Repeatable
nested_name: appointments
auto_id: %n
counter_name: appointment_count
attributes:
class: happy
name: appointment_slot
elements:
- type: Text
name: date
gives this output:
<div class="happy" *name="appointment_slot"*>
<input type="text" name="appointments.date_1" id="appointments.date_1">
</div>
but I want this:
<div class="happy" *name="appointment_slot_1" id="appointment_slot_1"*>
<input type="text" name="appointments.date_1" id="appointments.date_1">
</div>
More information about the HTML-FormFu
mailing list