[html-formfu] set multiple values to hidden element?

Benjamin Martin benjamin at opusvl.com
Tue Jun 22 07:59:49 GMT 2010






On 22/06/10 08:19, Hu Hailin wrote:
> Hi
>
> My situation is that I have so large a form that I try to split some
> condition out to display them in a collapsible div with javascript.
> So I am trying to pass data using Element::Hidden, but it accepts
> first value and fills it in form in multiple values' case.
> I also glanced at Element::Repeatable which seems not the one I want...
>
>    

I am not 100% clear on what you want to do?... could you expand a little?

> Yes, it might be implemented using blocks but a little too complex.
> Any advice for implementing a repeatable hidden element?
>
>    
I have found the Repeatable element very useful, although abit combersum 
to use, what with the $el->repeat(x) .. but it works for me.

Are you intending to use a single config file?...you might need to 
dynamically add the hidden elements when building the form.

I guess you could put a delimited value in a hidden field but this seems 
like a rather hacky way to get multiple values into a hidden field.



More information about the HTML-FormFu mailing list