def extra_field_type(index)
      t = extra_type(index).to_s
      case t
        when 'password'
          'password'
        when 'integer', 'float'
          'number'
        when 'boolean'
          'checkbox'
        else
          if t.downcase.index('in:')
            'select'
          else
            'text'
          end
      end
    end
def extra_field_type(index)
      t = extra_type(index).to_s
      case t
        when 'password'
          'password'
        when 'integer', 'float'
          'number'
        when 'boolean'
          'checkbox'
        else
          if t.downcase.index('in:')
            'select'
          else
            'text'
          end
      end
    end
Gets the field type for an extra value.