[html-formfu] Increment id on block elements

Stephen Shorrock stephen.shorrock at googlemail.com
Mon Dec 7 11:24:39 GMT 2009


Dear list,

FormFu has been excellent at handling and displaying my forms, I've
found a single call to render the form fantastic. However I've come up
against some limitations which may not allow me to render a form as
simple as this.

I have a repeatable within which I have a number of block elements, and fields.

By creating a custom Block element is there something I could override
/ modify to increment the field id? within the render I wish these
block element to have the row number appended to their ids cf field
elements.  Indeed I'd like to access these elements via the form
object in my controller, so I imagine that I would also need to have
a name attribute associated with them but this will render my XHTML as
invalid.

It suspiciously appearing like I might be going beyond the design of
FormFu, is the
best thing to flag this?

Your thoughts are appreciated.

Regards
Stephen



More information about the HTML-FormFu mailing list