Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    Apologies for adding to this thread rather than creating a new one, but i’m having similar issues and thought i’d share how it happened.

    I’d originally set up the free plugin and API with no issues. Upon upgrading to pro, I clicked to edit a map, and there was a grey box with an error message in it where the map usually loads (can’t remember the exact message – but it said to check Java console, which was indicating no API found, even though it was set up fine).

    I tried the above method of removing all references in the API, and then the API from the plugin, and then reinstating each and i now get the message:

    ‘This page was unable to display a Google Maps element. Please contact the site administrator. If you are the administrator of this site, please check the JavaScript console or check the following page for troubleshooting: http://g.co/mapsJSApiErrors’

    The map is visible under the overlay, but disappears when i close down the error message.

    All plugins are updated to their latest versions, as is wordpress.

    Thread Starter Newman81

    (@newman81)

    Hi,

    Thanks for your response, that section is to tie the form in with a ‘postcode lookup’ function, which was working.

    To get it working with contact-form-7 I added the following code to some Javascript as described here: http://craftyclicks.co.uk/tutorials/postcode-lookup-in-15-minutes/

    var cp_obj = CraftyPostcodeCreate();
       cp_obj.set("access_token", "xXXXXx"); // your token here
       cp_obj.set("result_elem_id", "crafty_postcode_result_display");
       /*cp_obj.set("form", "wpcf7-form");*/
       cp_obj.set("elem_company"  , "companyname");
       cp_obj.set("elem_street1"  , "address1");
       cp_obj.set("elem_street2"  , "address2");
       cp_obj.set("elem_street3"  , "address3");
       cp_obj.set("elem_town"     , "town");
       cp_obj.set("elem_postcode" , "postcode");
Viewing 2 replies - 1 through 2 (of 2 total)