Check out the LimeSurvey source code on GitHub!

External replacement field

More
2 years 11 months ago #106498 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.

Please Log in to join the conversation.

More
2 years 11 months ago #106507 by tpartner
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.

Please Log in to join the conversation.

More
2 years 11 months ago #106527 by Thomas_
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.

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form