Check out the LimeSurvey source code on GitHub!

Implement "AJAX"-call

3 years 10 months ago #95321 by king_and1

I need some advice on how to implement an AJAX-call in LimeSurvey....

I just want it to target one special question. Let´s just say only the first one .
How and where do i have to insert the Code ?
Since I´m relatively new to this kind of programming I´m really confused about the implementation.

Hopefully someone can help me with this project .... :silly:

Please Log in to join the conversation.

3 years 10 months ago #95333 by king_and1
Well , so i got the Blue and Gray template where i changed some colors and so on....

The structure still the same.

The first question in my Survey is like : "please type in your serial number"

Well, and thats exactly where i want an Ajax call. After the user finished the input, it should start checking the serial number on a external server and provide an answer if this serial is correct or not .
I´ve searched the question.pstpl(dunno how its correct..) and i´ve found the div_class="answers" and the table´s in it. But i dont know how to specifically target this first question. So i hope this is enough information so we can go on working out this problem , if not please tell me what´s missing and i´m gonna try editing it as good as possible...

Please Log in to join the conversation.

3 years 10 months ago #95357 by DenisChenu
You have an expample of an ajax call here:

Ajax call is not a LS problem, please view jquery documentation .


Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).

Please Log in to join the conversation.

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