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

JavaScript for DataObject


Go to End


4 Posts   1233 Views

Avatar
MarioSommereder

Community Member, 107 Posts

12 July 2013 at 9:50pm

Hi there,

I have a DataObject with a dropdown and multiple other things. Now when the user selects something in the dropdown some of the things shall hide, others shall be shown.

What is the correct way to implement this JavaScript file in 3.1?

Thanks. Mario

Avatar
dpde

Community Member, 15 Posts

12 July 2013 at 9:53pm

Edited: 12/07/2013 9:54pm

I think this is what you are looking for:
https://github.com/unclecheese/silverstripe-display-logic

Avatar
MarioSommereder

Community Member, 107 Posts

12 July 2013 at 9:56pm

Yes, looks good! Let's give it a try. Thank you!

Avatar
MarioSommereder

Community Member, 107 Posts

13 July 2013 at 1:12am

Ok, I don't get it working and I can't find any installation manual.

Is there any trick?