Skip to content

A simple HTML script that integrates Google Places Autocomplete into an input field, requiring users to select their location from suggestions. The field is styled for enhanced user experience and restricted to Germany, Switzerland, and Austria. Designed for surveys to prevent typos and errors, ensuring accurate user input.

Notifications You must be signed in to change notification settings

fabiothon/HTML-Autocomplete

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

HTML Input with Region-Based Autocomplete

Description

A simple HTML script that integrates Google Places Autocomplete into an input field, forcing users to select their location from suggestions. The input field is styled for a better user experience and restricted to regions within Germany, Switzerland, and Austria. The goal of the application in combination with a survey is to prevent typos and errors from users.

Features

  • Autocomplete functionality for city names.
  • Input validation to ensure a place is selected from the suggestions.
  • Custom styling for the input field.
  • Specific geo-restrictions to Germany, Switzerland, and Austria

Installation of Application

  1. Replace API_KEY with your actual Google Maps API key.
  2. Save the code as an HTML file and use it within your survey.

About

A simple HTML script that integrates Google Places Autocomplete into an input field, requiring users to select their location from suggestions. The field is styled for enhanced user experience and restricted to Germany, Switzerland, and Austria. Designed for surveys to prevent typos and errors, ensuring accurate user input.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages