

{if is_string($fields.category.options)}
<input type="hidden" class="sugar_field" id="{$fields.category.name}" value="{ $fields.category.options }">
{ $fields.category.options }
{else}
<input type="hidden" class="sugar_field" id="{$fields.category.name}" value="{ $fields.category.value }">
{ $fields.category.options[$fields.category.value]}
{/if}
