Have an idea?

Visit Sawtooth Software Feedback to share your ideas on how we can improve our products.

branching script issue

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>
asked Jan 21 by sallen Bronze (955 points)
Our support team ought to have sent you some information earlier today, including touching on this.  Did you get that message?
I have not received anything today.

Your solution to the original question

Please only use this to answer the original question. Otherwise please use comments.
Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

To avoid this verification in future, please log in or register.
...