External replacement field

More
3 years 3 months ago #106498 by Thomas_
Thomas_ created the topic: External replacement field
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
3 years 3 months ago #106507 by tpartner
tpartner replied the 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.

Please Log in to join the conversation.

More
3 years 3 months ago #106527 by Thomas_
Thomas_ replied the 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.

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now