-
Ryan_StroupI am experiencing issues with users not entering the street type in address fields. I do not use the real address element because it doesn't allow for state abbreviations, and the American States option only allows full state names, which causes inconsistency as some users type abbreviations and others type full state names. I want to know if there is a way to get short text fields to auto-populate street addresses using JavaScript and to enforce the inclusion of street type. I need a solution that works with prefill and addresses these problems to ensure consistent and complete address input from users. -
Jerlan JotForm SupportHi Ryan,
Thanks for reaching out to Jotform Support. Unfortunately, Jotform does not natively support JavaScript injection, but the Autocompleted Address widget powered by Google Maps can be added to your form to provide address autofill functionality. Let me show you how to add it:
1. In Form Builder, click on the Add Form Element menu on the left side of the page.
2. Click on the Widgets tab, search for the Autocompleted Address widget, and click on it to add it to your form.
3. In the menu on the left side of the page, you can customize the way you want it and enter your Google Maps API Key.
4. Then click on the Update button at the lower part of the widget settings.

Check out the screencast below to see my results:
Here's the sample form for testing.Give it a try and let us know if you have any other questions.
