Jump to:

5537 Posts in 1737 Topics by 1223 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Where do I put javascript so it will affect SELECT control in CMS widget area?

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

Page: 1
Go to End
Author Topic: 667 Views
  • ImacSS
    Avatar
    Community Member
    35 Posts

    Where do I put javascript so it will affect SELECT control in CMS widget area? Link to this post

    Not sure if this should go under Widgets, or Customizing the CMS - so I put it in both.

    I've created a widget, where I have two dropdown (select) controls. When editing the Widget in the CMS - I would like the second dropdown control to only appear when the first dropdown control is set to a specific value. When it is not set to this value, the second dropdown control would not be visible.

    My first thought would be to hang javascript off of the first dropdown, but the problem is I don't know where to put this javascript so it will effect the dropdown in the CMS.

    Can anyone here point me in the right direction?

    Appreciate your time - thanks!

    667 Views
Page: 1
Go to Top

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

Comments on this website? Please give feedback.