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.

Widgets /

Discuss SilverStripe Widgets.

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

Using TreeDropdownField in a Widget


Go to End


3 Posts   2820 Views

Avatar
MarcusDalgren

Community Member, 288 Posts

12 October 2009 at 11:45pm

Hello.

I've been trying to use TreeDropdownField in one of my widgets but I can't get it to work. It seems like the javascript doesn't get applied properly when the TreeDropdownField is injected on the page like it is when you add a widget.

Does anyone know how to get this to work in a widget context?

Avatar
dio5

Community Member, 501 Posts

13 October 2009 at 3:25am

No, that type doesn't work with Widgets, but have a look at this forum post where someone gives an alternative non-js solution which might help:

http://www.silverstripe.org/widgets-2/show/253135

Avatar
MarcusDalgren

Community Member, 288 Posts

13 October 2009 at 3:27am

Thanks for the tip dio5!