# File ValidForm_html.rb, line 338
        def field_tohtml(withValidation=true,indentLevel=0)
                tabs="\t"*indentLevel
                case @optionSet
                        when ValidForm::CheckboxSet
                                tabs +
                                        %{<input type="checkbox"#{hashes_toattributes({:id=>@id,:name=>@optionSet.name || @optionSet.id,:value=>@value || @id},@attributes)}#{' checked' if @chosen}#{validation_tohtml(@optionSet) if withValidation}> } <<
                                        label_tohtml << "<br>\n"

                        when ValidForm::RadioSet
                                tabs +
                                        %{<input type="radio"#{hashes_toattributes({:id=>@id,:name=>@optionSet.name || @optionSet.id,:value=>@value || @id},@attributes)}#{' checked' if @chosen}#{validation_tohtml(@optionSet) if withValidation}> } <<
                                        label_tohtml << "<br>\n"

                        when ValidForm::OptionSet
                                tabs << %{<option#{hashes_toattributes({:id=>@id,:value=>@value || @id},@attributes)}#{' selected' if @chosen}>#{@label || @value || @id}</option>\n}

                        else
                                raise StandardError,'How did you get an option into a non-OptionSet?'

                end
        end