hello, i am coding in a survey that has bunch of skip logic and logic to determine if the question displays or not. I am placing all the logic in a <onAnswerChanged> block in the beginning of my XML document.
i had the page 1 skip logic working, but it does not work anymore, i don't think i changed any code - am I using <onAnswerChanged> block correctly? the rest of the code works, just not page 1 logic. I can email you the entire survey if you like.
<?xml version="1.0" encoding="UTF-8"?>
<!-- created on january 10, 2008 -->
hello, i am coding in a survey that has bunch of skip logic and logic to determine if the question displays or not. I am placing all the logic in a <onAnswerChanged> block in the beginning of my XML document.
i had the page 1 skip logic working, but it does not work anymore, i don't think i changed any code - am I using <onAnswerChanged> block correctly? the rest of the code works, just not page 1 logic. I can email you the entire survey if you like.
<?xml version="1.0" encoding="UTF-8"?>
<!-- created on january 10, 2008 -->
<surveyConfig title="Patient Satisfaction Survey" id="physical_therapy"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://survey.fbp"
shortDescription="Therapy Satisfaction Survey">
<onAnswerChanged>
<![CDATA[
skipPage(1, z1.equals("1"));
skipPage(1, z1.equals("2"));
skipPage(1, z1.equals("3"));
skipPage(1, z1.equals("4"));
skipPage(1, z1.equals("5"));
if (z3.equals("n")) ENVIRONMENT.get("survey").cancel();
setVisible("q4i1", q4i.equals("n"));
skipPage(17, s5a.equals("n"));
skipPage(18, s5a.equals("n"));
skipPage(19, s5a.equals("n"));
skipPage(14, s5b.equals("n"));
skipPage(15, s5b.equals("n"));
skipPage(16, s5b.equals("n"));
skipPage(20, s5c.equals("n"));
skipPage(21, s5c.equals("n"));
skipPage(22, s5c.equals("n"));
]]>
</onAnswerChanged>