Welcome to the LimeSurvey Community Forum

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

Can we do any calculations on values in question answers?

  • shaiful
  • shaiful's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 8 months ago #122120 by shaiful
Can we do any calculations on values in question answers? Like, if the sum of Question 2 + question 3 > X, then don’t show question 4.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 8 months ago #122134 by tpartner
Yes, please see Expression Manager in the manual. In particular, the section(s) on relevance.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • gabrieljenik
  • gabrieljenik's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
8 years 8 months ago #122144 by gabrieljenik
Complementing TPARTNER answer, you may find usefull the following link:
manual.limesurvey.org/Question_type_-_Equation

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Checkout our Reporting Solutions and our plugin shop at www.encuesta.biz .

The topic has been locked.
  • shaiful
  • shaiful's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 8 months ago #122264 by shaiful
Thank you for quick answer.
The topic has been locked.
  • shaiful
  • shaiful's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 8 months ago #122270 by shaiful
Sorry for double post, but Can we just disable/make read-only a conditional question rather than hiding the question from survey?
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 8 months ago #122280 by tpartner
Assuming the question type is short-text, add this to the question source:
Code:
<script type="text/javascript" charset="utf-8">    
  $(document).ready(function() { 
    $('#question{QID} input.text').prop('readonly', true);
    });
</script>

But, TEST your data.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose