Dynamical branching in survey


Author
Message
dschulz
dschulz
Respected Member (329 reputation)Respected Member (329 reputation)Respected Member (329 reputation)Respected Member (329 reputation)Respected Member (329 reputation)Respected Member (329 reputation)Respected Member (329 reputation)Respected Member (329 reputation)Respected Member (329 reputation)
Group: Forum Members
Posts: 21, Visits: 57
Dear Dave, dear Community,

I can't seem to get conditional branching within a survey right. To replicate my problems, I pasted an experiment below.
Problem a) When I use conditional branching, the Experiments sometimes messes up the surveypage order
Problem b) When I use conditional skipping, the Experiment locks at the first boolean value (if it was "true" for the first time, it will always skip this page even if the condition has changed)

Please press "Continue" and "Back" a few times to make sure, you can replicate my problems.

This issue seems to be the case if I use / pages = [1 = sequence(x)] or / pages = [1 = x ....].
I also tried a designated value.skipvalue, but this also does not seem to update the skip condition (even though the boolean value changes when checking within the Debugging Model (Ctrl+D)).

I hope you can help me. I do want to have keep it as a survey-Element (not a block) to make use of the "Back"-Button.

Thank you very much in advance,
Daniel



The Experiment:

<surveypage sp1>
/ caption = "Blank Page 1"
</surveypage>

<surveypage sp2>
/ caption = "Blank Page 2"
</surveypage>

<surveypage sp3>
/ caption = "Blank Page 3"
</surveypage>

<surveypage sp4>
/ caption = "Blank Page 4"
</surveypage>

<surveypage sp5>
/ caption = "Blank Page 5"
</surveypage>



<radiobuttons branch_sp_rb>
/ caption = "branch?"
/ options = ("Branch!", "Don't Branch!")
</radiobuttons>

<surveypage branch_sp>
/ caption = "This is the Radiobutton for branching"
/ questions = [1 = branch_sp_rb]
/ branch = [
    if (radiobuttons.branch_sp_rb.response == "Branch!") surveypage.target_sp
]
</surveypage>


<surveypage target_sp>
/ caption = "You decided to Branch..."
</surveypage>


<radiobuttons skip>
/ options = ("Yes", "No")
</radiobuttons>


<surveypage skip_decision_sp>
/ caption = "Do you want to Skip the next Question?"
/ questions = [1 = skip]
</surveypage>

<surveypage sp_to_skip>
/ caption = "You decided not to skip"
/ skip = [
    radiobuttons.skip.response == "Yes"
]
</surveypage>





<survey survey_sequence>
/ pages = [1 = sequence(sp1, sp2, sp3, branch_sp, sp4, skip_decision_sp, sp_to_skip, sp5)]
/ fontstyle = ("Times New Roman", 5%, false, false, false, false, 5, 1)
</survey>

<survey survey_numbered>
/ pages = [1 = sp1; 2 = sp2; 3 = sp3; 4 = branch_sp; 5 = sp4; 6 = skip_decision_sp; 7 = sp_to_skip; 8 = sp5]
/ fontstyle = ("Times New Roman", 5%, false, false, false, false, 5, 1)
</survey>



GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
dschulz - 4 Years Ago
Dave - 4 Years Ago
dschulz - 4 Years Ago
Dave - 4 Years Ago
dschulz - 4 Years Ago
                         Thank you for the clarification. I don't think that's solvable, I'm...
Dave - 4 Years Ago
                             Too bad... Thank you for your help.
dschulz - 4 Years Ago

Reading This Topic

Explore
Messages
Mentions
Search