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   409 Views

Avatar
knsqnt

Community Member, 85 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, 14 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
knsqnt

Community Member, 85 Posts

12 July 2013 at 9:56pm

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

Avatar
knsqnt

Community Member, 85 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?