Welcome to the LimeSurvey Community Forum

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

External replacement field

  • Thomas_
  • Thomas_'s Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 11 months ago #106498 by Thomas_
External replacement field was created by Thomas_
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.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 11 months ago #106507 by tpartner
Replied by tpartner on topic External replacement field
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.
The topic has been locked.
  • Thomas_
  • Thomas_'s Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 11 months ago #106527 by Thomas_
Replied by Thomas_ on topic External replacement field
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.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose