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.

Customising the CMS /

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

cascading dropdown?


Go to End


2 Posts   927 Views

Avatar
mi32dogs

Community Member, 75 Posts

24 April 2015 at 12:25pm

Hi,
I have a DataObject “A” that holds a lot of people and those people all have some documents in a $has_many DataObject “B”.

So now I’m creating another DataObject where I need to be able to select a person from dataobject “A” and then one of his/her documents from DataObject “B”

A cascading dropdown would be the way to go, is there one build into Silverstipe or does anybody has some tips on how to accomplish this

Avatar
Johnny9

Community Member, 35 Posts

24 April 2015 at 6:49pm

All available field types: http://doc.silverstripe.org/en/3.0/reference/form-field-types/
So you have to make custom code to make cascading dropdown.