[Webwork-user] Re: Dynamic list of form controls
Brought to you by:
baldree,
rickardoberg
From: Jay B. <dig...@ya...> - 2002-06-11 16:20:22
|
Give your Action a Map variable. The dynamic field names can be the keys and the field values will be the Map values. I think this is doable. Look at the CascadingSelectTest example. It does something close to what your asking. --- Vipul Manglik <vi...@mo...> wrote: Hi, I am designing a html form which has a variable number of form fields. The user filling the form can request creation of more form fields if needed. For instance, the form has a field to allow user to input 'product number'. The user can click on 'Add' button which creates another form field with 'product number'. My problem is that since the fields are created dynamically, and the names also assigned dynamically (like product_1, product_2 and so on), how do I get the values in a webwork action? Is there a pattern I can use for displaying and then getting values for dynmaically created list of from controls? Thanks Vipul Manglik ===== Respectfully, Jay Bose __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com |