ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

How do you use the checkbox field type?

May 25, 2011 6:37pm

Subscribe [3]
  • #1 / May 25, 2011 6:37pm

    ll23

    7 posts

    Aside from installing better 3rd party alternatives to EE’s native check boxes, how do you use them on a basic level? I couldn’t find anything in the docs. I tried the following but it doesn’t work. foo_check being the name of the checkbox field and “Show” being an option.

    {if foo_check == "Show"}{embed="includes/foo_form"}{/if}
  • #2 / May 26, 2011 7:13am

    John Henry Donovan

    12339 posts

    ll23,

    Checkbox Fields

    Checkbox fields are special in that they can be used as a single tag and as a tag pair.

    {foo_check}
    {foo_check}
    {item}
    
    {/foo_check}

    EE Docs : Channel Entries - Custom Fields

    The following might work for you

    {foo_check}
    {if item == "Show"}{embed="includes/foo_form"}{/if} 
    {/foo_check}
  • #3 / May 26, 2011 6:15pm

    ll23

    7 posts

    Tx for the info. I could not find that page for some reason!

  • #4 / May 27, 2011 12:30pm

    Sue Crocker

    26054 posts

    Glad John was able to help. Don’t hesitate to post again as needed.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases