Jump to:

17478 Posts in 4473 Topics by 1972 members

Archive

SilverStripe Forums » Archive » How to dynamically populate dropdownfield2 in popup based on selection of dropdownfield1?

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

Page: 1
Go to End
Author Topic: How to dynamically populate dropdownfield2 in popup based on selection of dropdownfield1? 709 Views
  • t_agga
    avatar
    Community Member
    7 posts

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

    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.

    709 Views
Page: 1
Go to Top

Currently Online: fischli, HanSolo, Thomas B. Nielsen, 夜雨0508

Welcome to our latest member: 夜雨0508

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.