Accessibility on Form Builder
Posted: Tue Nov 07, 2006 12:00 pm
I am trying to make a form template in form builder that actually makes an accessible form. This is where static text added is a fieldset wrapping the containing items, the form itself is a definition list (something I think is appropriate as the labels are in a sense definitions of the fields they label) and it incorporates multiple radio group etc.
If someone could aide me in the smarty part of it, I would be greatly appreciative, or even some of the accessibility stuff.
I have tried the following:
{$hidden}
{if $total_pages gt 1}{$title_page_x_of_y}{/if}
{foreach from=$fields item=entry}
{if $entry->display == 1}
{strip}
{if $entry->type == '-Static Text'}
{$entry->name}
{else}
{if $entry->required == 1 || $entry->css_class != ''} class="
{if $entry->required == 1}
required
{/if}
{if $entry->required == 1 && $entry->css_class != ''} {/if}
{if $entry->css_class != ''}
{$entry->css_class}
{/if}
"
{/if}
{if $entry->hide_name == 0}
input_id}">{$entry->name}
{if $entry->required_symbol != ''}
{$entry->required_symbol}
{/if}
{/if}
{if $entry->multiple_parts == 1}
{foreach from=$entry->input item=part}
{$part->name}
{$part->input}
{/foreach}
{else}
{$entry->input}
{/if}
{if $entry->valid == 0} <--- {/if}
{/if}
{/strip}
{/if}
{/foreach}
{$prev}{$submit}
If someone could aide me in the smarty part of it, I would be greatly appreciative, or even some of the accessibility stuff.
I have tried the following:
{$hidden}
{if $total_pages gt 1}{$title_page_x_of_y}{/if}
{foreach from=$fields item=entry}
{if $entry->display == 1}
{strip}
{if $entry->type == '-Static Text'}
{$entry->name}
{else}
{if $entry->required == 1 || $entry->css_class != ''} class="
{if $entry->required == 1}
required
{/if}
{if $entry->required == 1 && $entry->css_class != ''} {/if}
{if $entry->css_class != ''}
{$entry->css_class}
{/if}
"
{/if}
{if $entry->hide_name == 0}
input_id}">{$entry->name}
{if $entry->required_symbol != ''}
{$entry->required_symbol}
{/if}
{/if}
{if $entry->multiple_parts == 1}
{foreach from=$entry->input item=part}
{$part->name}
{$part->input}
{/foreach}
{else}
{$entry->input}
{/if}
{if $entry->valid == 0} <--- {/if}
{/if}
{/strip}
{/if}
{/foreach}
{$prev}{$submit}