{assign var='requiredFields' value=$cbgroup->load_required_fields()} {assign var='optionFields' value=$cbgroup->load_other_fields()} {assign var='customFields' value=$cbgroup->custom_group_fields}

## Add Group

Required Member Details

{foreach from=$requiredFields item=field} {$field.class = 'form-control'} {if $field.title == 'Group name'}
{$field.title} {ANCHOR place=$field.anchor_before}{$formObj->createField($field)}
{/if} {$field.class = 'form-control'} {if $field.title == 'Tags'}
{$field.title} {ANCHOR place=$field.anchor_before}{$formObj->createField($field)}
{/if} {$field.class = 'form-control'} {if $field.title == 'Choose a unique group name URL:'}
{$field.title} {ANCHOR place=$field.anchor_before}{$formObj->createField($field)}
{/if} {/foreach}
{foreach from=$requiredFields item=field} {$field.class = 'form-control'} {if $field.title == 'Description'}
{$field.title} {ANCHOR place=$field.anchor_before}{$formObj->createField($field)}
{/if} {$field.class = 'form-control'} {if $field.title == 'Group Category:'}
{$field.title}
{$field.label_class = "checkbox"} {$field.notShowSeprator = true} {$formObj->createField($field)}
{$field.hint_1}
{/if} {/foreach}
{foreach from=$optionFields item=field} {if $field.title == 'Privacy'}
{$field.title}
{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}
{/if} {/foreach}
{foreach from=$optionFields item=field} {if $field.title == 'Forum Posting:'}
{$field.title}
{ANCHOR place=$field.anchor_before}{$formObj->createField($field)}
{/if} {/foreach}