I think I almost have branching written for these questions but it appears to be doing the opposite of what I want...I only want to show NH5b and NH5c if NHa==1 but it appears that if I select anything else I get an error and if I select 1, it skips. What am I messing up here?
<script>
var GLOBAL_SAWTOOTH_[% QUESTIONNAME() %]_SETTINGS = {
branchings: [
{
dependentQuestion: 'NH5b',
condition: function() {
return SSI_GetValue('NH5a')==1;
},
selectMinimum: 1
},
{
dependentQuestion: 'NH5c',
condition: function() {
return SSI_GetValue('NH5a')==1;
},
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>