Welcome to the LimeSurvey Community Forum

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

Question condition with javascript

  • king_and1
  • king_and1's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 10 months ago #95612 by king_and1
Question condition with javascript was created by king_and1
Hello folks,

I´m back with a brand new question :D.

So i´ve been struggeling with an AJAX - call in Limesurvey. Now after i´ve made it , there´s a new problem coming up :/

Is it possible to set the condition for the next question to the answer of my ajax call ? I mean if the call works the next question will be shown. If theres an error the next question should not be shown.

Is this possible ?
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 years 10 months ago #95617 by tpartner
Replied by tpartner on topic Question condition with javascript
It would probably be easiest to use the "success" setting of the AJAX call to toggle a hidden question. The hidden question could then be used for conditions/relevance for subsequent questions.

Can you attach your AJAX code and let us know what the possible returned data would be?

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • king_and1
  • king_and1's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 10 months ago #95620 by king_and1
Replied by king_and1 on topic Question condition with javascript
This is just a Test , so the code isn´t finished .

<script src=" ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js ">