unclecheese / silverstripe-display-logic

The Display Logic module allows you to add conditions for displaying or hiding certain form fields based on client-side behavior.
BSD 3-Clause "New" or "Revised" License
74 stars 71 forks source link

Does display logic work for front-end forms? #16

Closed ghost closed 9 years ago

ghost commented 11 years ago

Having trouble getting anything to work. Not seeing any js include from display-logic on front-end

http://www.sspaste.com/paste/show/5277bc7d68bf4

http://staging.edgepharmacy.com/ordering/clinic-registration/

unclecheese commented 11 years ago

Hi, Zach,

You can't really attach display logic to LiteralFields because they don't have a template. There's no predictable HTML that can receive the event handlers. More info and a workaround here: https://github.com/unclecheese/silverstripe-display-logic/issues/15