<{foreach from=$qitem.htmlTag item=tag}> <{if $tag.type == 'text'}> maxlength="<{$tag.length}>"<{/if}> /> <{elseif $tag.type == 'textarea'}> <{elseif $tag.type == 'radio'}> <{elseif $tag.type == 'checkbox'}> <{elseif $tag.type == 'select'}> <{elseif $tag.type == 'file'}> <{elseif $tag.type == 'button' && $bmsurvey.config.mode != 'mobile'}> <{/if}> <{/foreach}>