Re: Form with variable number of inputs

2012-03-08 Thread Bertrand Guay-Paquet
Thanks for the input Martin. Essentially, it's possible, but I'd have to rewrite form handling code and lose functionality :) Another idea: maybe it is possible to handle the variable number of form components with page parameters. Something like http://numPhones=n; where numPhones would

Form with variable number of inputs

2012-03-07 Thread Bertrand Guay-Paquet
Hi, I have a form with a list of FormComponentPanels for phone numbers. Currently, adding a new phone number to the list involves an ajax request to add a new FormComponentPanel instance to the form and then another request to submit the form. Is there a way to achieve this without the

Re: Form with variable number of inputs

2012-03-07 Thread Martin Grigorov
Hi, One way to accomplish this is to submit to a page, not to a Form, and handle the request parameters manually. But this way it wont be Ajax anymore and you'll go to a new page. Additionally you will lose the form validation. On Wed, Mar 7, 2012 at 9:52 PM, Bertrand Guay-Paquet