Portage Bay
Solutions
Portage Bay

Update the Map_Widget script for you solution.

1. Create a button in your solution where you would like to call the map from and call the Map_Widget script from that button. Please see the demo file included with the Map Widget for an example on the Contact Detail screen, upper left hand corner. 

2. Locate the sections of code between the ###### symbols as shown in the screen captures below.

3. The first section allows you to put scripting for finding the found set you wish to be mapped. If you want to map the current found set, simply comment out lines 46 and 47.

Screen Shot 2018-07-18 at 3.22.05 PM.png

4. Open the Set Variable script steps and replace the fields with fields from your solution. Please note the following:

  • The variable names reference name, city, state zip, etc... While the variable names should not be changed, they can reference any data. If you want to instead display house color, type of fridge, and birthday, simply assign those fields to the variable. The data does not need to match the variable name.
Screen Shot 2018-07-26 at 1.21.13 PM.png
  • If you don't need as much info in the Google popup dialog (see screen capture), comment out the script step where the variable is set. The Map Widget will see the null value and drop that line of information automatically.
Screen Shot 2018-07-18 at 3.22.25 PM.png

The comments in the script provide further instructions.

Now, edit the MapWidgetGotoRecord script for your solution.

5. Change line 25 to reference the layout you would like the user to go to when the click the More Info link in the Google popup dialog.

6. Change line 29 to reference your primary key field (note that the variable name should not be modified)

Screen Shot 2018-07-20 at 7.09.55 AM.png