Google Map Location for Leads, Contacts or Accounts Modules in SuiteCRM Based on Address
Have you ever thought that it would be useful to see where your lead is located, geographically, inside a SuiteCRM record? Here’s how to create a Google Maps iFrame field within SuiteCRM for Leads module that will plot the Leads Address on Google Map.
Login as Admin user in SuiteCRM and Navigate to Admin option in Top Right corner. You will see below options. Click on Studio to proceed.
Now from the Resulted screen click on Leads module in the left Pane, then on Fields. Click on Add Field. This will open Field Properties pane. Set the attributes as described.
Select Data Type as "iFrame".
Field Name is the unique name of this file, set that to any descriptive text, for example "google_map"
Tick the Generate URL field (A new box should appear)
Cut and Paste the following in the field Default Value, change IFrame Height to “250” and click "Save"
Make sure your Leads record address is valid. Now if you navigate to any leads module record you will see that the address is being pinned on google map.
Login as Admin user in SuiteCRM and Navigate to Admin option in Top Right corner. You will see below options. Click on Studio to proceed.
Now from the Resulted screen click on Leads module in the left Pane, then on Fields. Click on Add Field. This will open Field Properties pane. Set the attributes as described.
Select Data Type as "iFrame".
Field Name is the unique name of this file, set that to any descriptive text, for example "google_map"
Tick the Generate URL field (A new box should appear)
Cut and Paste the following in the field Default Value, change IFrame Height to “250” and click "Save"
https://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q={primary_address_street},{primary_address_city},{primary_address_postalcode},{primary_address_country}&aq=&iwloc=A&output=embedAfter saving this field, Go to Layouts and add the newly created field to DetailView. In this way it would be visible to user on Detail View.
Make sure your Leads record address is valid. Now if you navigate to any leads module record you will see that the address is being pinned on google map.
Thank you for reading this. i hope it helped you in achieving the goal and now you can see map in your module. For any custom SuiteCRM work, don't hesitate to contact me on skype at https://join.skype.com/invite/QVTXJg06EC5t
It works, thank You
ReplyDeleteIt works but only shows the city on the map. It seems that it ignores the street address.
ReplyDelete@articen, this should work:
ReplyDeletehttps://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q={primary_address_street},{primary_address_city},{primary_address_postalcode},{primary_address_country}&aq=&iwloc=A&output=embed
Such a Resourceful Article.
ReplyDeleteKeep Sharing your CRM Knowledge to help others.
suitecrm customer portal
This comment has been removed by the author.
ReplyDeleteThank you! I also used it for the contacts :)
ReplyDeleteI did use the URL as mentioned above by Unknown on Jan 27th 2018 though.