FEUsers, want to hide hidden fields on a template [SOLVED]
Posted: Thu Mar 12, 2009 5:56 pm
I want to keep the hidden fields from adding empty rows in the table on the Change Settings template.
The default template looks like:
I've tried using {if isset($control->hidden)} and {if isset($entry->hidden)}, neither seem to work.
What's the correct syntax for checking if a field is hidden or not?
The default template looks like:
Code: Select all
<!-- change settings template -->
{$title}
{if $message != ''}
{if $error != ''}
<p><font color="red">{$message}</font></p>
{else}
<p>{$message}</p>
{/if}
{/if}
{$startform}
{if $controlcount > 0}
<center>
<table width="100%">
{foreach from=$controls item=control}
<tr>
<td valign='top'>{$control->hidden}<font color="{$control->color}">{$control->prompt}{$control->marker}</font></td>
<td>
{if isset($control->image)}{$control->image}{/if}
{$control->control}<br/>{$control->addtext}
{if $control->required != true}
{if isset($control->control2)}{$control->prompt2} {$control->control2}<br/>{/if}
{/if}
</td>
</tr>
{/foreach}
</table>
</center>
{/if}
{$hidden}{$hidden2}{$submit}{$cancel}
{$endform}
<!-- change settings template -->
What's the correct syntax for checking if a field is hidden or not?