I have a form where the number of input fields is dynamic.
How can these input fields be mapped with a play form? Let’s say, the name of each input tag is ‘foo_x’ where x is an integer that is incremented each time a new input field is dynamically created on the client side. Is there any automatic mapping in Play available or do I have to do this ‘by hand’ and if so, how can this be done?
See “Repeated values” in the Play2 Documentation.
You can have these mapped into a List automatically provided you follow the naming convention.