Have an idea?

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

Constant Sum with maximum per cell


I have a constant sum question with a max total of 15, but would like to limit the max per cell to 5 so a respondent cannot allocate 6-15 to a single cell.

Would that be possible?

Thank you for your response.
asked Mar 16, 2022 by Marcia

1 Answer

0 votes
Please try giving your constant sum this custom JavaScript verification:

$('input[name="hid_list_[% QuestionName() %]"]').val().split(',').forEach(function(item){
    if (SSI_GetValue('[% QuestionName() %]_' + item) > 5) {
        strErrorMessage = 'Error...';
answered Mar 16, 2022 by Zachary Platinum Sawtooth Software, Inc. (214,575 points)
Thank you very much Zachary, this worked super well.