8

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

1
  • you mean checkbox in component Fields? Feb 17, 2014 at 12:59

2 Answers 2

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 and acknowledge you have read our privacy policy.

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