Looping Through Dynamic Form Fields
Posted on 2010-09-13
I am working on a form that initially has some fields, but the user can also add more dynamically.
All fields follow the name var#index# and price#index# where #index# is the number of lines in the form so far. Also form fields are always 1 var field and 1 price field. The extra fields are added via a jQuery function.
So now I need to process the form once submitted. Is there a way I could loop over the fields to get the values?
Let me know if you need any code.
PS there is also one other field in the form called title.
PPS the form is in an application driven by the FW/1 framework so I don't have the form scope. Instead I have the Request Context (RC scope) which essentially contains the request scope.