- Posts: 14380
- Thank you received: 2594
Ask the community, share ideas, and connect with other LimeSurvey users!
I'm unsuretpartner wrote: It seems that the two equations are fighting each other. I could not get it to work, even using simple equations that did not check for previous answers. If you use an equation to conditionally set Q1, you cannot use the value of Q1 in another conditional setting equation on the next page. It seems to return null.
(this might be seen as a bug)
I'm unsure
, but i need a complet lss showing exact issue.
Forward : step1 (validation of current group) : 1st equation do Q1_SQ001= "" because Q1_SQ002 is empty
No,tpartner wrote: Yes, but that should (I think) happen on page load, not after I manually set Q1. I check the box so Q1_SQ001== "Y" and that should override the equation and let the second equation set Q2.
<script type="text/javascript" charset="utf-8"> $(document).ready(function() { var checkedState = false; if('{<ARRAY_OF_QUESTIONS>}' == 'Y') { checkedState = true; } $('#answer{SGQ}<ARRAY_OF_QUESTIONS>).prop('checked', checkedState).trigger('change'); }); </script>