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>


_______________________________________________
HTML-FormFu mailing list
HTML-FormFu@lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu

Reply via email to