Can’t find an answer anywhere. I’m just trying to use the simple channel:form tag to have a user check one or more items from an option list field and then submit the record. I can do the select method for the drop-down list, but I can’t find any info on how to do a checkbox form field…
Any help is appreciated. Thanks!
-Tony
For those curious, this is how I solved it (all done inside the channel:form tag):
{custom_fields}
{if field_name=="YOURFIELDNAMEGOESHERE"}
Weekly Achievement Awards:
{options:YOURFIELDNAMEGOESHERE}
<br>
<input type="checkbox" id="{field_name}" name="{field_name}[]" value="{option_value}"{checked}>
<label class="checkbox">{option_value}</label>
{/options:YOURFIELDNAMEGOESHERE}
{if:elseif field_name=="YOURONLYOTHERCHECKBOXFIELDNAMEGOESHERE"}
Squadron Build Award:
{options: YOURONLYOTHERCHECKBOXFIELDNAMEGOESHERE}
<br>
<input type="checkbox" id="{field_name}" name="{field_name}[]" value="{option_value}"{checked}>
<label class="checkbox">{option_value}</label>
{/options: YOURONLYOTHERCHECKBOXFIELDNAMEGOESHERE}
{/if}
{/custom_fields}
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.