Adding map integration is an advantage for your website that will help you to find out your customer’s location. Now with MetForm, you can easily add google map location to your form.
How to Create a Map Integration #
It is a very helpful feature that will help you to know your customers or form submitters more. Through MetForm you can easily create map integration by adopting two steps. Let’s dive in for adding this integration.
Prerequisites: #
For Google Maps integration to your WordPress forms, you need to have the following plugins installed on your WordPress site:
- Elementor: Download Plugin
- MetForm Pro: Get the Plugin
You need to have the MetForm Professional Plan to use this feature.
Step 1: Generate and insert map API key. #
Access your admin dashboard.
- Hover your mouse on MetForm and click Settings.
- Visit general -> map
- Press the “create form here” link like the image


It will redirect you to the Google Cloud Platform from where you have to login or sign up.
Now, you have to click the navigation menu.


- Find APIs & Services
- Go to Library
- Find Maps JavaScript API and Places API


Next, you have to click JavaScript API and enable it.


Like JavaScript, you need to enable the Places API.


However, you’ll also need to enable the Geocoding API. This is required so the address can auto-fill automatically whenever a pin is placed or moved on the map.


Next, go to Credentials.


Click + Create credentials and select API key.


- You’ll see a window now. From here, select the Map JavaScript API and Places API for the API restrictions
- Press ok


Your API key has been generated, copy it.


Now, return to MetForm, enter that copied key in the API box and press the Save Changes button.


Learn more about the general settings of MetForm.
Step 2: Add a New Form to Integrate with the Map #
You need to create a form.To do it, go to Forms from MetForm. A popup from settings will open up after clicking the Add New button.
- Select General
- Take a new blank template


Go to the form settings –
- In the General tab, write a title for your form
- Scroll down and click the Edit content button


This will redirect you to the Elementor dashboard, from where you need to drag and drop the MetForm Google Map Location widget.


Customize the Widget #
The content tab offers these controls –
- Map API Notice: Instructions to configure Map API from MetForm → Settings, with a “Configure form here” link and a reminder to enable Maps JavaScript API, Places API, and Geocoding API
- Show Label: Toggle (Yes/No) — controls whether a label shows above the input.
- Position: Dropdown (currently “Top”) — sets label position (top or left of the input)
- Label: Text field (“Google Map Location”) — the label text that will be displayed
- Name: Text field (“mf-map-location”) — unique field name, must be entered without spaces or special characters


Settings part –
Required?: Turn “Yes” to make this field mandatory for form submission.
Warning message: The message shown to the user if they try to submit without filling this required field.


Map Settings –
- Show Map: Toggles whether an interactive map appears below the address search box.
- Select Point by Clicking Map: If “Yes,” users can click anywhere on the map to set the location.
- Draggable Marker: If “Yes,” users can drag the pin to fine-tune the exact location.
- Default Latitude: Sets the starting latitude coordinate the map centers on by default.
- Default Longitude: Sets the starting longitude coordinate the map centers on by default.
- Default Zoom: Controls how zoomed-in the map is when it first loads (higher = closer).
- Map Height (px): Sets the height of the map display in pixels.


Let’s style the map. Go to the the Style tab.
Label:
- Color: Choose the color of the label text
- Typography: Set the font style for the label
- Padding: Adjust top, right, bottom, and left padding
- Margin: Adjust top, right, bottom, and left margin
Input:
- Padding: Adjust top, right, bottom, and left padding
- Margin: Adjust top, right, bottom, and left margin
- State: Switch between Normal, Hover, and Focus states
- Input Color: Set the color of the input field
- Background Type: Choose the background style
- Border Type: Select the border style, default or custom
- Typography: Set the font style for the input text
- Border Radius: Adjust the roundness of the input corners
Place Holder:
- Typography: Set the font style for the placeholder text
- Color: Choose the color of the placeholder text


After customization, update the changes and check if it works fine.
Here is the final look of map integration:



