8

Does anyone knows how to check from a dreamweaver template if a checkbox field is checked or not? Thanks in advance

  • you mean checkbox in component Fields? – Saurabh Gangwar Feb 17 '14 at 12:59
8

It's only a checkbox when displayed in the CME. Basically it's a field like any other, so you can just check for the actual value.

Something like this should work:

<!-- TemplateBeginIf cond="MyField='MyValue'" -->
...
<!-- TemplateEndIf -->
6
<!-- TemplateBeginIf cond="Field.Values(1) != ''" -->
...

<!-- TemplateEndIf -->

above will check if checked

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.