[Webwork-user] Dynamic list of form controls
Brought to you by:
baldree,
rickardoberg
From: Vipul M. <vi...@mo...> - 2002-06-11 06:37:53
|
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 |