Documentation

INTRODUCTION

WordPress Contact form 7 is one of the most popular plugin for creating and generating forms.It is easy to integrate and equally easy to display.When it comes to wordpress, there are many contact form wordpress plugin and one of the most simple and smart ones is contact form 7 plugin.Google Maps Extension for CF7 brings Google Maps to Contact Form 7. The user can place markers or shapes on google maps. This makes it easier to get a location from the user. You must have installed Contact Form 7 plugin before using Contact Form 7 Google Maps.

PLUGIN INSTALLATION

How to install contact form 7 plugin in wordpress -Step by Step:

CREATE API KEY

API key is the mandatory to insert for proper working of a google maps. So please follow the steps to get an API key.

CF7 GOOGLE MAPS PLUGIN SETTINGS

CF7 GOOGLE MAPS SETTING

  • Map Type: Insert Map Type. Select one of the four available map types that you want to use for the map. 

    • Roadmap – displays the default road map view.

    • Satellite – displays satellite images.

    • Hybrid – displays a combination of normal and satellite views.

    • Terrain – displays a normal street map based on terrain information

  • Google Maps API Key : Insert Google Maps API Key of the Google Maps.

  • Center by Current Location: Tick to center the map based on visitor’s current location.

  • Snazzy Map Google Map Style : You can create your own custom map style by either writing your own style code or you can use existing map styles from snazzymaps.

  • Turn Off Zoom Control : Tick to disable zoom control.

  • Zoom Control : Select position of zoom control.

  • Turn Off Full Screen Control : Tick to disable full screen control.

  • Full Screen Control : Select position of full screen control.

  • Turn Off Map Type Control : Tick to disable map type control.

  • Map Type Control : Select position of map type control.

  • MARKER SETTINGS

          

  • Show Markers : Tick to allow users to add markers on the google maps.

  • Choose Marker Image

  • Maximum Markers Allowed for Drawing : Allow visitor to draw marker on frontend CF7 google map.

  • CIRCLE SETTING

  • Show Circle: Tick to allow users to add circles on the google maps.

  • Maximum Circles Allowed for Drawing: Allow visitor to draw circle on frontend CF7 google map.

  • Circle Fill Color : Select color of the circle.

  • Circle Border Color : Select border color of the circle.

  • Border Thickness: Select border thickness of the circle.

  • Circle Opacity: Select opacity of the circle.

  • POLYGON SETTING

  • Show Polygon: Tick to allow users to add polygon on the google maps.

  • Maximum Polygons Allowed for Drawing : Allow visitor to draw polygons on frontend CF7 google map.

  • Polygon Fill Color: Select color of the polygon.

  • Polygon Border Color: Select border color of the polygon.

  • Polygon Thickness: Inset border thickness of the polygon.

  • Polygon Opacity: Select opacity of the polygon.

  • POLYLINE SETTING

  • Show Polyline : Tick to allow users to add polyline on the google maps.

  • Maximum Polyline Allowed for Drawing: Allow visitor to draw polyline on frontend CF7 google map.

  • Polyline Border Color : Select border color of the polyline.

  • Polyline Border Thickness: Select border thickness of the polyline.

  • RECTANGLE SETTING

  • Show Rectangle: Tick to allow users to add rectangle on the google maps.

  • Maximum Rectangle Allowed for Drawing: Allow visitor to draw rectangle on frontend CF7 google map.

  • Rectangle Fill Color : Select color of the rectangle.

  • Rectangle Border Color: Select border color of the rectangle.

  • Rectangle Border Thickness: Select border thickness of the rectangle.

  • Rectangle Opacity: Select opacity of the rectangle.

  • Click on save settings.

    CF7 CONTACT FORM PLUGIN SETTING

    For displaying a map on front-end CF7 form, You will first need to integrate it along with other form elements from the backend.

    EDIT MAIL SETTING

    Put the shortcode{{maps_data}} into the ‘Message Body’ field in ‘Mail’ tab. This shortcode is used to send markers and shapes informations in the email body.

    Here’s what each field means:

  • To — The email address to which the messages will be sent.

  • From — Sender of the email. By default, it is set to the name of the person using your contact form.

  • Additional Headers — Space for additional message header fields.

  • Message Body — The body of the email you will receive.

  • Exclude lines with blank mail-tags from output. — Tick to exclude lines with blank mail-tags from output

  • Use HTML content type —Tick to use HTML type.

  • File Attachments — If your form allows file uploads, the tags for these files belong here.

  • Mail (2) — An additional mail template often used as an auto responder. Tick to activate.

  • SHORTCODE

    How to get user’s input in Email?

    A user can get his input in email. Here some easy steps are given to get input in email.



    Follow the steps to get email:

    “Receive User”s Input in the Email of Submitted Locations.

    You can view location directly On Google Map




    You will get your location and other information in KML file through email.