- Posts: 19
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Question condition with javascript
- king_and1
- Topic Author
- Offline
- New Member
Less
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 .
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 ?
I´m back with a brand new question .
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10634
- Thank you received: 3698
10 years 10 months ago #95617
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
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?
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 19
- Thank you received: 0
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 ">
<script src=" ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js ">