I am trying to check which of the Checkboxes is checked and then display its value (The Name). Here is the code on my summary template:
Code: Select all
<div id="title">
{if count($entry->fields)}
{foreach from=$entry->fields key='name' item='field'}
{if $field->type == 'checkbox' && isset($field->value)}
<p style="font-size:10px; color:#ff0000; margin:0px; padding:0px;">{$field->name}</p>
{/if}
{/foreach}
{/if}
</div>Code: Select all
{if $field->type == 'checkbox' && isset($field->value == true)}Code: Select all
{if $field->type == 'checkbox' && $name == 'Checkbox'}Code: Select all
{if $field->type == 'checkbox'}Thank you

