Mapping the google map to Salesforce

Last updated Jul 30 2020

Populating the Google map based on coordinates from Salesforce

With FormTitan form builder you can easily "Read" from any Salesforce object and have the data populated in your online form. This is very useful  in reducing user's efforts by sparing him from filling in data he has already entered before. 
But how about mapping your Google map element to Salesforce - can this be done? can a google map in your online form display a different location based on input from the form filler? The answer is Yes.

In the following example we will show you how to add a google map to your form, and have it populated based on coordinates from your Salesforce account.
We will add a condition in the integration  by which the form filler will need to enter his account name and only if he is recognized,  the rest of his data will be populated from SF.

Following are steps:

* Before using Google map in your form you must first make sure to configure the Google map API key.
For this you will need to get the API key and then paste it in: 'Properties' panel > 'Form' tab > 'Settings' option > 'Personalization' category > 'Google map AI key' field.

1-

Create a new form: 
Drag a textbox - for account name from "Elements" panel > "Basic" category > "Input" sub category
Drag a textbox - for account phone from "Elements" panel > "Basic" category > "Input" sub category
Drag a textbox - for account website from "Elements" panel > "Basic" category > "Input" sub category
Drag a Google map element - from "Elements" panel > "Widgets" category 

2-

Create the Salesforce "Get" integration:
Authenticate with Salesforce


Choose the SF object you want to read from - in this example: "Account"


Set a condition: Account name Equals account name


and map your form fields to the Salesforce object fields


3-  Now that the form and integration are set up all you have to do is test the form by publishing it as "URL".
Please note that in order to test this in you will need to uthenticate with your own SF account. You will also need to make sure you have at least one account that contains data in the fields you have mapped.
Best way is to set a test record and enter data in the relevant fields:
- account name, account phone, account website.
- You will also need to enter your Latitude and Longitude numbers in 2 different text fields. (in this example we created 2 custom fields in the "Account" object beforehand).
Pick a place, for example "Rome" and enter the following numbers: Latitude :41.9028, Longitude: 12.4964.

4-

Publish your form.
Enter the account name (the one you set up for the test)
You will then see the phone and website fields populated , as well as Rome on your google map.

 Watch the video

 Read more about Salesforce forms
CommentsLogin Required
Didn’t find what you were looking for?
Try the following for assistance or Use the Search box.