Welcome to the LimeSurvey Community Forum

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

Referenced to Key which is in the Global Settings

  • KhemrajC
  • KhemrajC's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
4 years 5 days ago #196852 by KhemrajC
Hi,

Is there a way out to have reference to a Key which is in the Global Settings and to use it in-line with the script of a question?

Thanks and regards
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 5 days ago #196861 by DenisChenu
Replied by DenisChenu on topic Referenced to Key which is in the Global Settings
I don't understand the question.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • KhemrajC
  • KhemrajC's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
4 years 5 days ago - 4 years 5 days ago #196869 by KhemrajC
Hi,

Say I have this little javascript code:

<script src=" maps.googleapis.com/maps/api/js?libraries=places&key=(Map) ">

The (Map) parameter is already in the Global Settings.

How to reference to it or just avoid any referencing?

LS Version 3.22.9+200317

Thank you very much.

Best regards
Last edit: 4 years 5 days ago by KhemrajC.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 5 days ago #196870 by Joffm
You wrote several times

Please bear in mind that I do not have access to global settings


If you could access it this way, it would be a real issue in the right management of LimeSurvey.

But if you want to call the google maps api this way, why don't you register to get your own key?

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • KhemrajC
  • KhemrajC's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
4 years 5 days ago #196871 by KhemrajC
Hi,

You are right. I do not have access to the global settings.

I want to have this example running:

www.limesurvey.org/community/forums/can-...nswer-via-javascript

The last section with the code provided by Tpartner.

In the code, it refers to a map key.

There is already a key in the Global Settings for which I made a request.

Though, I have a strong preference for open source, openstreetmap is not just enough covered for my country and I have no other alternative to use google map. This example uses autocompletion of address.

I just want to find a way to skip the referencing of the key in Tpartner code in this line and make it use the one already in the global settings:

<script src=" maps.googleapis.com/maps/api/js?librarie...aces&key=yourKey ">

Is it possible to do in a clean way?

Thanks and regards
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 5 days ago #196872 by Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 5 days ago #196875 by tpartner
The Google API key entered in global settings is not available in the survey.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • KhemrajC
  • KhemrajC's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
4 years 5 days ago #196876 by KhemrajC
Hi,

This is exactly what I wanted to know.

Thanks and regards
The topic has been locked.
  • KhemrajC
  • KhemrajC's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
4 years 5 days ago #196877 by KhemrajC
Hi,

Thank you for guiding me properly.

Thanks and regards
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose