Take the 2-minute tour ×
Tridion Stack Exchange is a question and answer site for Tridion developers and administrators. It's 100% free, no registration required.

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

share|improve this question
    
you mean checkbox in component Fields? –  Saurabh Gangwar Feb 17 at 12:59

2 Answers 2

up vote 8 down vote accepted

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 -->
share|improve this answer
<!-- TemplateBeginIf cond="Field.Values(1) != ''" -->
...

<!-- TemplateEndIf -->

above will check if checked

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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