 countries = [
            'germany',
            'iran',
            'iraq',
            'spain'
          ]

          if (input.length < 1) { return [] }

          return countries.filter(country => {
            return country.toLowerCase().startsWith(input.toLowerCase())
          })
        }
      }
    }

    var schema = {
      'title': 'Test',
      'type': 'string',
      'format': 'autocomplete',
      'options': {
        'autocomplete': {
          'search': 'search',
          'autoSelect':