I appear to have some issues with my branching script and had a few questions. I assume I can have all questions on the same page (unlike with skip logic)? Currently all questions show up and do not go away despite the selection in L1. This is my script. Any help is much appreciated. In another branching, I am getting it to work but only in the opposite way I want so I must be doing something incorrectly.
<script>
var GLOBAL_SAWTOOTH_[% QUESTIONNAME() %]_SETTINGS = {
branchings: [
{
dependentQuestion: 'L2b',
condition: function() {
return SSI_GetValue('L1')<>1;
},
selectMinimum: 1
},
{
dependentQuestion: 'L3',
condition: function() {
return SSI_GetValue('L1')==4||('L1')==5||('L1')==7||('L1')==8
},
selectMinimum: 1
},
{
dependentQuestion: 'L41',
condition: function() {
return SSI_GetValue('L1')<>1
},
selectMinimum: 1
},
{
dependentQuestion: 'L42',
condition: function() {
return SSI_GetValue('L1')==2||('L1')==3||('L1')==4
},
selectMinimum: 1
},
{
dependentQuestion: 'L43',
condition: function() {
return SSI_GetValue('L1')==2
},
selectMinimum: 1
}
],
errorMessageSettings: {
missingAnswer: 'A response is required.',
minimumChecks: 'The minimum number of checks is [MINIMUM].',
minimumCharacters: 'The response must contain at least [MINIMUM] characters.'
}
};
</script>