What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    Google maps static API embedding into notification email

    Asked by agrupa on September 26, 2016 at 11:09 PM

    Welvin, 

    This doesn't seem to to be working anymore, do you have any ideas on how to get it working again. The map will not show in the notification email, you can click the hyperlink and then get the map from the email. 

    google maps maps widget email notification
  • Profile Image
    JotForm Support

    Answered by Boris on September 27, 2016 at 02:56 AM

    I have just checked the setup that my colleagues provided in the original support thread you've posted on, and I see the setup is still working correctly. Here is how emails sent from our system appear:

    You can also review the emails that your forms sent out to you or your users through your form email history:

    https://www.jotform.com/help/293-How-to-View-All-Your-Form-Email-History

    Now, I see that your test form 50695443460962 has several images set inside its email notification, and it is using the GeoLocation widget. The demo setup was created for GeoComplete widget instead, as these widgets have a different default output of the location they collect.

    If you were using the GeoComplete widget, the correct link to generate the static Google Maps image would be this:

    https://maps.googleapis.com/maps/api/staticmap?center={GeoCompleteWidgetName}&zoom=13&size=600x300&maptype=roadmap%20&markers=color:green|%22{GeoCompleteWidgetName}%22

    As you are using the GeoLocation widget instead, you should switch this widget to output its location format as "Address Only", and after that, the correct image link to use is this:

    https://maps.googleapis.com/maps/api/staticmap?center={clickTo11}&zoom=13&size=600x300&maptype=roadmap%20&markers=color:green|%22{clickTo11}%22

    To change the way your GeoLocation widget is outputting the collected location, please click on the widget's wand-shaped icon:

    Once the widget's configuration wizard runs, simply switch the Output Format to Address Only, and then click on Update Widget button to apply the change:

    Please try it out and let us know should you experience any further difficulties. Thank you.

  • Profile Image

    Answered by agrupa on September 27, 2016 at 07:07 AM

    So this is really close, I think the issue may be with Gmail not wanting to show a static map. I can get the map to show up in the email when viewing the email on an I phone (iso 10)

     

    However, when viewing it from a computer in Gmail (chrome) all that I get is a place holder for an image.

     

  • Profile Image
    JotForm Support

    Answered by Kiran on September 27, 2016 at 10:50 AM

    I have cloned your JotForm and see that there are two map images placed in the notification. 

    The URL set in the second URL is returning an error when the map field is replaced with a location. When I tried to submit the form, the email notification received on my Gmail and displaying the first map correctly. Since there is an issue with the second URL, the map image is not being displayed in the email.

    You may edit the notification to remove the second URL from the notification. Let us know if you need any further assistance. We will be happy to assist.  

  • Profile Image
    JotForm Support

    Answered by Kiran on September 27, 2016 at 12:30 PM

    It seems that your response is not posted on this thread. Here it is for reference.

    That works, Thank you very much. Now just need to get it to show on the PDF too. I will work on it. 

    Do let us know if you need any further assistance. We will be happy to assist.