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

How to dynamically populate dropdownfield2 in popup based on selection of dropdownfield1?


Go to End


3532 Views

Avatar
t_agga

Community Member, 7 Posts

16 December 2008 at 6:23am

Edited: 17/12/2008 12:37am

Hi guys,

Apart from other fields, I have two dropdownfields in my Popup. I managed to get them populated with data. However, as there is a one-to-many relationship between them, I would like the second combo to be dynamically populated with the data specific to the first one. At the moment I get all the values in a second combo regardless of combo1. Is there a way to do it? And how can I find out if the state of the dropdownfield has been changed and how can I get the value?
I spent days on silverstripe doc, trying to find the answer but no luck.
Thank you in advance.