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.

Archive /

Our old forums are still available as a read-only archive.

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

Adding list of unknown length


Go to End


2 Posts   1479 Views

Avatar
UncleCheese

Forum Moderator, 4102 Posts

25 October 2007 at 10:18am

Edited: 25/10/2007 10:18am

My attorneys page also needs a list of all the schools each attorney went to. One way to accomplish this would be to give the user a WYSIWYG editor and have him make a bulleted list, but I'd much rather use some kind of dynamic set of text fields where the user could just click "add" and get another textbox until finished.

Is this a possibility? Or am I dreaming, here?

Avatar
Sean

Forum Moderator, 922 Posts

25 October 2007 at 4:15pm

Hi there,

You can achieve this by using a TableField, have a look at the following pages for some information:

Here: http://doc.silverstripe.com/doku.php?id=tablefield

TableField is a subclass of TableListField, so you can see documentation on that too, here:
http://doc.silverstripe.com/doku.php?id=tablelistfield

Cheers,
Sean