How to enforce street type in collecting address?

  • Profile Image
    Ryan_Stroup
    Asked on March 28, 2026 at 4:55 PM
    I 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.
  • Profile Image
    Jerlan JotForm Support
    Replied on March 28, 2026 at 5:24 PM

    Hi 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.

    How to enforce street type in collecting address? Image 1 Screenshot 40

    4. Then click on the Update button at the lower part of the widget settings.

    How to enforce street type in collecting address? Image 2 Screenshot 51

    Check out the screencast below to see my results:

    How to enforce street type in collecting address? Image 3 Screenshot 62 Here's the sample form for testing.

    Give it a try and let us know if you have any other questions.