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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Form Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Arrays of fields


Go to End


2 Posts   906 Views

Avatar
tafftoo

Community Member, 1 Post

20 September 2011 at 9:49am

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

Forum Moderator, 1899 Posts

22 September 2011 at 1:53am

Hi tafftoo,

Welcome!

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