Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Form Questions

Arrays of fields


Reply

2 Posts   340 Views

Avatar
tafftoo

20 September 2011 at 9:49am Community Member, 1 Post

Hi,

I'm a bit stuck here. I'm trying to build a form where I need to submit arrays of values, but no matter what I try I seem to be hitting a brick wall with it.

I need to build a form where I can dynamically add groups of fields named field1[], field2[], and field3[].

Anybody done this?

Avatar
swaiba

22 September 2011 at 1:53am Forum Moderator, 1796 Posts

Hi tafftoo,

Welcome!

Is this the kind of thing you are looking for?
https://github.com/nyeholt/silverstripe-multivaluefield