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.

Customising the CMS

JavaScript for DataObject


Reply

4 Posts   348 Views

Avatar
theGermaniac

12 July 2013 at 9:50pm Community Member, 82 Posts

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

12 July 2013 at 9:53pm (Last edited: 12 July 2013 9:54pm), Community Member, 14 Posts

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

Avatar
theGermaniac

12 July 2013 at 9:56pm Community Member, 82 Posts

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

Avatar
theGermaniac

13 July 2013 at 1:12am Community Member, 82 Posts

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

Is there any trick?