Pixel & Tonic

FieldFrame

version works on rated
1.4 EE1
Download Get Help

FF Checkbox

FF Checkbox gives you a single checkbox input. It’s value is either “y” or blank.

Configuration

FF Checkbox has one optional field setting, “Checkbox Label”, which defines the label positioned beside the checkbox.

Templates

Primary Tag

Typically, FF Checkbox fields will appear in templates within conditionals, using its primary single tag:

{if checkbox_field}
   <p>My FF Checkbox field is checked!</p>
{if:else}
   <p>My FF Checkbox field is not checked.</p>
{/if}

:label Tag

Gab the Checkbox Label setting from within your template:

{checkbox_field:label}: {if checkbox_field}yes{if:else}no{/if}