Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Google Map Error

  • AngelLR
  • AngelLR's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 5 months ago - 3 years 5 months ago #207422 by AngelLR
Google Map Error was created by AngelLR
Hi,

Sorry if there is a better place for this topic, I didn't find any category for errors.

I have a survey with a Google Maps field (well, a free text field using Google Maps as the map service). The survey works well, but if I try to send the survey without having answered all the required fields the map disappear.

The page is not refreshing, it just shows a popup that explain me that I have to answer all required questions and then the map is gone.

After checking the devtools I see a JavaScript error related with the map. The error:

"You have included the Google Maps JavaScript API multiple times on this page. This may cause unexpected errors."


I guess the Google Maps JavaScript API is called again after the function that validates the fields fails and then the error makes my map disappear, right? How can I fix it?

Thank you.

EDIT:

My LimeSurvey version is 3.15.6
Last edit: 3 years 5 months ago by AngelLR.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 5 months ago #207424 by tpartner
Replied by tpartner on topic Google Map Error
What is your LimeSurvey version?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • AngelLR
  • AngelLR's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 5 months ago #207426 by AngelLR
Replied by AngelLR on topic Google Map Error
Sorry, forgot to say it, my LimeSurvey version is 3.15.6.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 5 months ago #207428 by tpartner
Replied by tpartner on topic Google Map Error
Try updating to the latest LTS version.

Alternatively, if you have an AJAX option in the survey theme options , disable it.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: AngelLR
The topic has been locked.
  • AngelLR
  • AngelLR's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 5 months ago #207431 by AngelLR
Replied by AngelLR on topic Google Map Error
Disabling AJAX mode in theme options fixed it. Thank you!
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
3 years 5 months ago #207434 by tpartner
Replied by tpartner on topic Google Map Error
Yup, that option was a terrible idea and has been removed in later versions.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: DenisChenu
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose