Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:

THEMA: External replacement field

External replacement field 4 Monate 1 Woche her #106498

  • Thomas_
  • Thomas_s Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 3
  • Karma: 0
Hello,

I'm trying to setup a survey where questions include informations derived from the Zipcode provided by the respondent. There are various ways to get these informations, for instance the city or the congressional district, with APIs. Is there a way to make an API query and include its result as a replacement field in LimeSurvey?

I'm using LimeSurvey 2.00+ build 130802

Thank you.
Thomas.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

External replacement field 4 Monate 1 Woche her #106507

  • tpartner
  • tpartners Avatar
  • ONLINE
  • LimeSurvey Team
  • Beiträge: 4068
  • Dank erhalten: 746
  • Karma: 341
I don't understand "include its result as a replacement field".

I imagine you will need to access the API directly with JavaScript or with an AJAX call.


.
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

External replacement field 4 Monate 1 Woche her #106527

  • Thomas_
  • Thomas_s Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 3
  • Karma: 0
Hi,

Yes, that's the conclusion I came to. It's okay in my case, but it can be a problem to use a client-side JavaScript workaround if you need to provide an API key. That's not my case here, but I wouldn't have an API key travel to the client.

Thanks.
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Moderatoren: ITEd
Ladezeit der Seite: 0.130 Sekunden
Donation Image