This is what I have. It seems to not be working yet...
<script>
var GLOBAL_SAWTOOTH_[% QUESTIONNAME() %]_SETTINGS = {
branchings: [
{
dependentQuestion: 'L2b',
condition: function() {
return SSI_GetValue('L1')!=1;
}
selectMinimum: 1
},
{
dependentQuestion: 'L3',
condition: function() {
var resp = SSI_GetValue('L1');
return resp==4 || resp==5 || resp==7 || resp ==8;
}
selectMinimum: 1
},
{
dependentQuestion: 'L41',
condition: function() {
return SSI_GetValue('L1')!=1
}
selectMinimum: 1
},
{
dependentQuestion: 'L42',
condition: function() {
var resps = SSI_GetValue('L1');
return resps==2 || resps ==3 || resps==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.'
}
};