Closed loba-b closed 9 years ago
DisplayLogic, by design, won't work with LiteralFields because they don't return a predictable body of HTML to attach event handlers to. A literal field could even just return just a text node. There's no way to toggle the display of something that isn't contained in HTML.
A good work around solution might be this idea: https://github.com/unclecheese/silverstripe-display-logic/issues/12
Like in topic. Display logic not hide/show etc... with LiteralField
LiteralField::create("ExampleLiteral", "Example text") ->displayIf("OtherField")->isEqualTo('SomeText') ->end(),
Sorry for my bad English