Skip to content

Address Input Field ​

The Address input field in Fluent Forms offers a suitable way to collect a user's complete address information, such as Street, City, State, Zip code, and Country, in a single, structured manner. You can also collect multiple address text boxes.

This guide will walk you through adding and customizing the Address Input Field in Fluent Forms for your WordPress site.

NOTE

Autocomplete the Address field with Google Maps or OpenStreetMap (Fluent Forms Pro). See Autocomplete Provider below and How to Integrate Google Maps with Fluent Forms.

Adding the Address Input Field ​

Go to Forms from the Fluent Forms navbar, select the form you want to edit, and click Edit to open the form editor.

Once you are on the Editor page, click the Plus Icon in your form editor and open the General Fields module. The General Fields option is also in the right sidebar under the Input Fields tab.

Now, choose the desired Address Input field by clicking on it or Drag & Drop it into your editor.

Customizing the Address Input Field ​

Next, hover over the field and click the Edit icon to customize the Address field. Or click on the Input Customization tab in the right corner when the field is selected.

You can personalize the input field using the following options in the Input Customization area.

  • Address Input Options

  • Advanced options

Address Input Options ​

You will find various settings options for customizing the field. Located in the Input Customization Tab, these options allow you to configure essential aspects of the Address Input field.

A. Element Label: This is the field title the users will see when filling out the Address field in a form. You can enter any text here to help users understand the purpose of the field.

B. Admin Field Label: The admin field label is a field title displayed only to admin users. This means that you can configure this option to show a different field label for your admin users when they view the form submissions.

C. Address Field: Here, you will see each part of the address field. There are six options. Click the drop-down button beside these fields to select the Input Field Label, Default, Placeholder, Help Message, and Required choices. If you don’t want any option, uncheck the checkbox.

  • Label: You can change the field label as you wish.

  • Label Placement: This option determines the position of the label title where the user will see it. The available options are Top, Left, Right, and Default. All of those are self-explanatory except the Default. If you select the Default option, it will represent your global label placement settings.

  • Default: There’s a text box where you can set a default value for the Address field, which would pre-populate the field when the form is loaded.

A text box provides additional options or actions related to the default value. You can clear the field, use a dynamic value, or select another advanced setting by clicking and selecting the Three Vertical Dots menu on the right side.

  • Placeholder: You can also include a placeholder where users will view the field topic. Add placeholder text, like “Enter your street address,” to guide users in what to input.

  • Help Message: This option allows you to guide your user thoroughly. Add your text here, which will be shown as a help message to the user.

  • Required: Decide whether users must select at least one option before submission. If you hit the Radio button and pick Yes, the field is compulsory, and the user must answer by submitting the form. By default, it selected No options.

Autocomplete Provider (Pro) ​

The Autocomplete Provider setting fills in the address for your users. You find it below the Address Fields list in the Input Customization tab. Click the dropdown and choose one of these options:

  • None: No address autocomplete. This is the default.
  • Google Maps: Suggests addresses as the user types. This option stays grayed out until you add a Google Maps API key. See How to Integrate Google Maps with Fluent Forms.
  • OpenStreetMap Geolocation (Nominatim): Detects the user's location in the browser and fills in the address from OpenStreetMap. No API key is needed.

When you choose OpenStreetMap Geolocation (Nominatim), the OpenStreetMap Locate option appears. Use it to decide when the address is detected:

  • On Page Load: The browser asks for the user's location as soon as the form loads.
  • On Click: The user clicks the locate icon in the address field. The field shows Please wait ... while it looks up the address.
  • Disable: Turns location lookup off.

OpenStreetMap fills in Address Line 1, City, State, Zip Code, and Country. If a location has no city, the City field uses the town or village name instead. An OpenStreetMap attribution line appears below the field.

NOTE

OpenStreetMap (Nominatim) allows only 1 request per second across all users, and requires attribution. It suits forms with low traffic. For high-traffic forms, use Google Maps. The editor shows this same notice below the dropdown.

Save Coordinates: With Google Maps or OpenStreetMap, check Save User Location (Latitude & Longitude) to save the user's latitude and longitude with the address.

Advanced Options ​

Advanced settings allow further customization to meet specific use cases.

A. Element Class: Add custom CSS classes to the input field.

B. Name Attribute: The input field’s name attribute is the HTML equivalent of the same name. You don’t need to modify this.

C. Autocomplete: Choose what kind of information this field collects so browsers can autofill it for your users, such as name, email, or address details. It also helps assistive technology identify the purpose of the input. Select Automatic to use the matching value for the field, off to disable browser autofill, or None to add no attribute at all. For address fields, choose On to autofill the whole address, or leave it on Automatic to skip address autofill.

D. Conditional Logic: This option allows you to create specific rules to dynamically hide/show the input field to function conditionally based on your submission values according to your set of conditional logics. To learn more, read Set up Forms with Conditional Logic in Fluent Forms.

D. Autocomplete: Choose how browsers autofill the whole Address field. The options are Automatic, On (autofill this address), off, and None. Address autofill stays off until you choose On (autofill this address).

It then gives each input, such as street, city, and zip code, its matching value. To learn more, read Autocomplete for Form Fields.

Embed the Form into the front ​

Once you have customized the Address input field, click the Save Form button to apply the changes.

To display the form on a specific page or post, Copy the Shortcode from the top-right corner and Paste it into your desired page or post.

Now, preview the form, click Preview & Design in the middle of the page.

Preview of Added Address Input Field ​

Here is a preview of the form with the Address Input field:

And that's it! You have successfully added and customized an Address Input Field in Fluent Forms.