[html-formfu] Increment id on block elements

Carl Franks fireartist at gmail.com
Mon Dec 7 11:50:05 GMT 2009


2009/12/7 Stephen Shorrock <stephen.shorrock at googlemail.com>:
> 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.

Hi Stephen,

Could you give an example of exactly what you'd like the output xhtml
to look like - including the field and block IDs ?

Cheers,
Carl



More information about the HTML-FormFu mailing list